summaryrefslogtreecommitdiffstats
path: root/include/libssh
diff options
context:
space:
mode:
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/libssh.h9
-rw-r--r--include/libssh/priv.h1
2 files changed, 8 insertions, 2 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 99d4a59..ade69d3 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -467,7 +467,8 @@ enum {
/** Code is going to write/create remote files */
SSH_SCP_WRITE,
/** Code is going to read remote files */
- SSH_SCP_READ
+ SSH_SCP_READ,
+ SSH_SCP_RECURSIVE=0x10
};
enum ssh_scp_request_types {
@@ -476,7 +477,11 @@ enum ssh_scp_request_types {
/** A new file is going to be pulled */
SSH_SCP_REQUEST_NEWFILE,
/** End of requests */
- SSH_SCP_REQUEST_EOF
+ SSH_SCP_REQUEST_EOF,
+ /** End of directory */
+ SSH_SCP_REQUEST_ENDDIR,
+ /** Warning received */
+ SSH_SCP_REQUEST_WARNING
};
LIBSSH_API ssh_scp ssh_scp_new(ssh_session session, int mode, const char *location);
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 7645c43..d05f3a6 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -365,6 +365,7 @@ enum ssh_scp_states {
struct ssh_scp_struct {
ssh_session session;
int mode;
+ int recursive;
ssh_channel channel;
char *location;
enum ssh_scp_states state;