summaryrefslogtreecommitdiffstats
path: root/include/libssh/priv.h
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-08-23 15:23:48 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-08-23 15:23:48 +0200
commit6a04b43a45896822732dedec1a4a2d972fbb9b80 (patch)
tree0846d15c7f88b1b0e7559e2f0679f2c86311e53e /include/libssh/priv.h
parent049c62098cbd0d8efc342150a194fe72c9bdf6b0 (diff)
downloadlibssh-6a04b43a45896822732dedec1a4a2d972fbb9b80.tar.gz
libssh-6a04b43a45896822732dedec1a4a2d972fbb9b80.tar.xz
libssh-6a04b43a45896822732dedec1a4a2d972fbb9b80.zip
added ssh_scp_request_new,ssh_scp_request_struct
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r--include/libssh/priv.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 1ad6b41c..023f4a72 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -359,6 +359,7 @@ enum ssh_scp_states {
SSH_SCP_READ_READING, //File is opened and reading
SSH_SCP_ERROR //Something bad happened
};
+
struct ssh_scp_struct {
ssh_session session;
int mode;
@@ -369,6 +370,15 @@ struct ssh_scp_struct {
size_t processed;
};
+struct ssh_scp_request_struct {
+ ssh_scp scp;
+ enum ssh_scp_request_types type;
+ char *name;
+ char *mode;
+ size_t size;
+ int acked;
+};
+
struct ssh_message;
struct ssh_session_struct {
@@ -857,6 +867,10 @@ int match_hostname(const char *host, const char *pattern, unsigned int len);
void message_handle(SSH_SESSION *session, uint32_t type);
int ssh_execute_message_callbacks(SSH_SESSION *session);
+/* scp.c */
+
+ssh_scp_request ssh_scp_request_new(void);
+
/* log.c */
#ifndef __FUNCTION__