summaryrefslogtreecommitdiffstats
path: root/include/libssh
diff options
context:
space:
mode:
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/libssh.h4
-rw-r--r--include/libssh/priv.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index cfb3fbc0..99d4a598 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -474,7 +474,9 @@ enum ssh_scp_request_types {
/** A new directory is going to be pulled */
SSH_SCP_REQUEST_NEWDIR=1,
/** A new file is going to be pulled */
- SSH_SCP_REQUEST_NEWFILE
+ SSH_SCP_REQUEST_NEWFILE,
+ /** End of requests */
+ SSH_SCP_REQUEST_EOF
};
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 8e1c724d..7645c431 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -358,7 +358,8 @@ enum ssh_scp_states {
SSH_SCP_READ_INITED, //Gave our intention to read
SSH_SCP_READ_REQUESTED, //We got a read request
SSH_SCP_READ_READING, //File is opened and reading
- SSH_SCP_ERROR //Something bad happened
+ SSH_SCP_ERROR, //Something bad happened
+ SSH_SCP_TERMINATED //Transfer finished
};
struct ssh_scp_struct {
@@ -866,6 +867,7 @@ int ssh_execute_message_callbacks(SSH_SESSION *session);
int ssh_scp_read_string(ssh_scp scp, char *buffer, size_t len);
int ssh_scp_integer_mode(const char *mode);
char *ssh_scp_string_mode(int mode);
+int ssh_scp_response(ssh_scp scp, char **response);
/* log.c */