diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-08-23 22:04:51 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-08-23 22:04:51 +0200 |
commit | 385b640d1dabddb06e389e633c622fb1c7cc664e (patch) | |
tree | 4470d6ba5a4bb6333500a1c91d0cf98a7cf6e87d /include/libssh/libssh.h | |
parent | d4bc6fa954f11b1da0c8881c2826ac4a60f8c41e (diff) | |
download | libssh-385b640d1dabddb06e389e633c622fb1c7cc664e.tar.gz libssh-385b640d1dabddb06e389e633c622fb1c7cc664e.tar.xz libssh-385b640d1dabddb06e389e633c622fb1c7cc664e.zip |
Implementation of ssh_scp_pull_request
Still needed: code in ssh_scp_init,
implementation of ssh_scp_read
ssh_scp_request_get_filename,
ssh_scp_request_get_size,
ssh_scp_request_get_mode,
ssh_scp_deny_request
ssh_scp_accept_request
!!
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r-- | include/libssh/libssh.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 466fb5f..9707ba8 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -120,7 +120,6 @@ 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; -typedef struct ssh_scp_request_struct* ssh_scp_request; /* Socket type */ #ifdef _WIN32 @@ -471,10 +470,11 @@ enum { enum ssh_scp_request_types { /** A new directory is going to be pulled */ - SSH_SCP_REQUEST_NEWDIR, + SSH_SCP_REQUEST_NEWDIR=1, /** A new file is going to be pulled */ SSH_SCP_REQUEST_NEWFILE }; + LIBSSH_API ssh_scp ssh_scp_new(ssh_session session, int mode, const char *location); LIBSSH_API int ssh_scp_init(ssh_scp scp); LIBSSH_API int ssh_scp_close(ssh_scp scp); @@ -483,8 +483,9 @@ LIBSSH_API int ssh_scp_push_directory(ssh_scp scp, const char *dirname, const ch LIBSSH_API int ssh_scp_leave_directory(ssh_scp scp); LIBSSH_API int ssh_scp_push_file(ssh_scp scp, const char *filename, size_t size, const char *perms); LIBSSH_API int ssh_scp_write(ssh_scp scp, const void *buffer, size_t len); -LIBSSH_API ssh_scp_request ssh_scp_pull_request(ssh_scp scp); -LIBSSH_API int ssh_scp_deny_request(ssh_scp scp, ssh_scp_request request, const char *reason); +LIBSSH_API int ssh_scp_pull_request(ssh_scp scp); +LIBSSH_API int ssh_scp_deny_request(ssh_scp scp, const char *reason); +LIBSSH_API int ssh_scp_accept_request(ssh_scp scp); #ifdef __cplusplus } |