summaryrefslogtreecommitdiff
path: root/lib/url.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-12-20 12:52:24 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-12-20 20:30:02 +0100
commitdfdac61522c7d660f884ec7a663dedb2d69d16a8 (patch)
tree18fb71b132893a5bc84324002830bddb56b70309 /lib/url.h
parentc834213ad52c52431e9ca597862dc81839cabe84 (diff)
downloadcurl-dfdac61522c7d660f884ec7a663dedb2d69d16a8.tar.gz
non-blocking active FTP: cleanup multi state usage
Backpedaled out the funny double-change of state in the multi state machine by adding a new argument to the do_more() function to signal completion. This way it can remain in the DO_MORE state properly until done. Long term, the entire DO_MORE logic should be moved into the FTP code and be hidden from the multi code as the logic is only used for FTP.
Diffstat (limited to 'lib/url.h')
-rw-r--r--lib/url.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.h b/lib/url.h
index 8947627d5..c858706a1 100644
--- a/lib/url.h
+++ b/lib/url.h
@@ -37,7 +37,7 @@ CURLcode Curl_close(struct SessionHandle *data); /* opposite of curl_open() */
CURLcode Curl_connect(struct SessionHandle *, struct connectdata **,
bool *async, bool *protocol_connect);
CURLcode Curl_do(struct connectdata **, bool *done);
-CURLcode Curl_do_more(struct connectdata *);
+CURLcode Curl_do_more(struct connectdata *, bool *completed);
CURLcode Curl_done(struct connectdata **, CURLcode, bool premature);
CURLcode Curl_disconnect(struct connectdata *, bool dead_connection);
CURLcode Curl_protocol_connect(struct connectdata *conn, bool *done);