diff options
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 2d09be07b..435693ee0 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -362,6 +362,13 @@ typedef enum { FTPFILE_SINGLECWD = 3 /* make one CWD, then SIZE / RETR / STOR on the file */ } curl_ftpfile; +typedef enum { + FTPTRANSFER_BODY, /* yes do transfer a body */ + FTPTRANSFER_INFO, /* do still go through to get info/headers */ + FTPTRANSFER_NONE, /* don't get anything and don't get info */ + FTPTRANSFER_LAST /* end of list marker, never used */ +} curl_ftptransfer; + /* This FTP struct is used in the SessionHandle. All FTP data that is connection-oriented must be in FTP_conn to properly deal with the fact that perhaps the SessionHandle is changed between the times the connection is @@ -372,8 +379,10 @@ struct FTP { char *passwd; /* password string */ char *urlpath; /* the originally given path part of the URL */ char *file; /* decoded file */ - bool no_transfer; /* nothing was transfered, (possibly because a resumed - transfer already was complete) */ + + /* transfer a file/body or not, done as a typedefed enum just to make + debuggers display the full symbol and not just the numerical value */ + curl_ftptransfer transfer; curl_off_t downloadsize; }; @@ -570,7 +579,7 @@ struct ConnectBits { proxies, but can also be enabled explicitly by apps */ bool tunnel_connecting; /* TRUE while we're still waiting for a proxy CONNECT - */ + */ bool authneg; /* TRUE when the auth phase has started, which means that we are creating a request with an auth header, but it is not the final request in the auth |