diff options
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r-- | include/libssh/libssh.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 91f5f49..b86eaf2 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -93,6 +93,7 @@ typedef struct ssh_channel_struct* ssh_channel; typedef struct ssh_agent_struct* ssh_agent; typedef struct ssh_session_struct* ssh_session; typedef struct ssh_kbdint_struct* ssh_kbdint; +typedef struct ssh_scp_struct* ssh_scp; /* Socket type */ #ifdef _WIN32 @@ -423,6 +424,19 @@ void ssh_message_free(SSH_MESSAGE *msg); ssh_channel ssh_message_channel_request_open_reply_accept(SSH_MESSAGE *msg); int ssh_message_channel_request_reply_success(SSH_MESSAGE *msg); +/* scp.c */ +enum { + /** Code is going to write/create remote files */ + SSH_SCP_WRITE, + /** Code is going to read remote files */ + SSH_SCP_READ +}; + +ssh_scp ssh_scp_new(ssh_session session, int mode, const char *location); +int ssh_scp_init(ssh_scp scp); +int ssh_scp_close(ssh_scp scp); +void ssh_scp_free(ssh_scp scp); + #ifdef __cplusplus } |