curl_imap.h: Tidy up of comments to be more readable
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 2009 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -28,32 +28,32 @@
|
|||||||
* IMAP unique setup
|
* IMAP unique setup
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
IMAP_STOP, /* do nothing state, stops the state machine */
|
IMAP_STOP, /* do nothing state, stops the state machine */
|
||||||
IMAP_SERVERGREET, /* waiting for the initial greeting immediately after
|
IMAP_SERVERGREET, /* waiting for the initial greeting immediately after
|
||||||
a connect */
|
a connect */
|
||||||
IMAP_LOGIN,
|
IMAP_LOGIN,
|
||||||
IMAP_STARTTLS,
|
IMAP_STARTTLS,
|
||||||
IMAP_UPGRADETLS, /* asynchronously upgrade the connection to SSL/TLS
|
IMAP_UPGRADETLS, /* asynchronously upgrade the connection to SSL/TLS
|
||||||
(multi mode only) */
|
(multi mode only) */
|
||||||
IMAP_SELECT,
|
IMAP_SELECT,
|
||||||
IMAP_FETCH,
|
IMAP_FETCH,
|
||||||
IMAP_LOGOUT,
|
IMAP_LOGOUT,
|
||||||
IMAP_LAST /* never used */
|
IMAP_LAST /* never used */
|
||||||
} imapstate;
|
} imapstate;
|
||||||
|
|
||||||
/* imap_conn is used for struct connection-oriented data in the connectdata
|
/* imap_conn is used for struct connection-oriented data in the connectdata
|
||||||
struct */
|
struct */
|
||||||
struct imap_conn {
|
struct imap_conn {
|
||||||
struct pingpong pp;
|
struct pingpong pp;
|
||||||
char *mailbox; /* what to FETCH */
|
char *mailbox; /* Message ID to fetch */
|
||||||
imapstate state; /* always use imap.c:state() to change state! */
|
imapstate state; /* Always use imap.c:state() to change state! */
|
||||||
int cmdid; /* id number/index */
|
int cmdid; /* Next command ID */
|
||||||
const char *idstr; /* pointer to a string for which to wait for as id */
|
const char *idstr; /* String based response ID to wait for */
|
||||||
bool ssldone; /* connect() over SSL? only relevant in multi mode */
|
bool ssldone; /* Is connect() over SSL done? Only relevant in
|
||||||
|
multi mode */
|
||||||
};
|
};
|
||||||
|
|
||||||
extern const struct Curl_handler Curl_handler_imap;
|
extern const struct Curl_handler Curl_handler_imap;
|
||||||
extern const struct Curl_handler Curl_handler_imaps;
|
extern const struct Curl_handler Curl_handler_imaps;
|
||||||
|
|
||||||
#endif /* HEADER_CURL_IMAP_H */
|
#endif /* HEADER_CURL_IMAP_H */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user