summaryrefslogtreecommitdiff
path: root/lib/ftp.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/ftp.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/ftp.h')
-rw-r--r--lib/ftp.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/lib/ftp.h b/lib/ftp.h
index b64e70506..13652acda 100644
--- a/lib/ftp.h
+++ b/lib/ftp.h
@@ -24,20 +24,23 @@
***************************************************************************/
#ifndef CURL_DISABLE_FTP
-CURLcode Curl_ftp(struct connectdata *conn, bool *done);
-CURLcode Curl_ftp_done(struct connectdata *conn, CURLcode, bool premature);
-CURLcode Curl_ftp_connect(struct connectdata *conn, bool *done);
-CURLcode Curl_ftp_disconnect(struct connectdata *conn);
+extern const struct Curl_handler Curl_handler_ftp;
+
+#ifdef USE_SSL
+extern const struct Curl_handler Curl_handler_ftps;
+#endif
+
+#ifndef CURL_DISABLE_HTTP
+extern const struct Curl_handler Curl_handler_ftp_proxy;
+
+# ifdef USE_SSL
+extern const struct Curl_handler Curl_handler_ftps_proxy;
+# endif
+#endif
+
CURLcode Curl_ftpsendf(struct connectdata *, const char *fmt, ...);
CURLcode Curl_nbftpsendf(struct connectdata *, const char *fmt, ...);
CURLcode Curl_GetFTPResponse(ssize_t *nread, struct connectdata *conn,
int *ftpcode);
-CURLcode Curl_ftp_nextconnect(struct connectdata *conn);
-CURLcode Curl_ftp_multi_statemach(struct connectdata *conn, bool *done);
-int Curl_ftp_getsock(struct connectdata *conn,
- curl_socket_t *socks,
- int numsocks);
-CURLcode Curl_ftp_doing(struct connectdata *conn,
- bool *dophase_done);
#endif /* CURL_DISABLE_FTP */
#endif /* __FTP_H */