summaryrefslogtreecommitdiff
path: root/lib/ssh.h
diff options
context:
space:
mode:
authorPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2007-10-12 13:36:37 +0000
committerPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2007-10-12 13:36:37 +0000
commit07b6e7363d910ad4828376d568a2f19fd8d64661 (patch)
tree1b61554caff5805e38ee72f2151e80c0675610ae /lib/ssh.h
parent2741f97a69e79a8489e395f105bff0d92567bc21 (diff)
downloadcurl-07b6e7363d910ad4828376d568a2f19fd8d64661.tar.gz
Added per-protocol callback static tables, replacing callback ptr storage
in the connectdata structure by a single handler table ptr.
Diffstat (limited to 'lib/ssh.h')
-rw-r--r--lib/ssh.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/ssh.h b/lib/ssh.h
index 71b48db04..8ac2a41ee 100644
--- a/lib/ssh.h
+++ b/lib/ssh.h
@@ -25,28 +25,18 @@
***************************************************************************/
#ifdef USE_LIBSSH2
-
-CURLcode Curl_ssh_connect(struct connectdata *conn, bool *done);
-CURLcode Curl_ssh_multi_statemach(struct connectdata *conn, bool *done);
-
-CURLcode Curl_scp_do(struct connectdata *conn, bool *done);
-CURLcode Curl_scp_done(struct connectdata *conn, CURLcode, bool premature);
+extern const struct Curl_handler Curl_handler_scp;
+extern const struct Curl_handler Curl_handler_sftp;
ssize_t Curl_scp_send(struct connectdata *conn, int sockindex,
void *mem, size_t len);
ssize_t Curl_scp_recv(struct connectdata *conn, int sockindex,
char *mem, size_t len);
-CURLcode Curl_sftp_do(struct connectdata *conn, bool *done);
-CURLcode Curl_sftp_done(struct connectdata *conn, CURLcode, bool premature);
ssize_t Curl_sftp_send(struct connectdata *conn, int sockindex,
void *mem, size_t len);
ssize_t Curl_sftp_recv(struct connectdata *conn, int sockindex,
char *mem, size_t len);
-CURLcode Curl_sftp_doing(struct connectdata *conn,
- bool *dophase_done);
-CURLcode Curl_scp_doing(struct connectdata *conn,
- bool *dophase_done);
#endif /* USE_LIBSSH2 */