mirror of
https://github.com/curl/curl.git
synced 2025-02-23 15:10:03 +08:00
curl_imap.h: Tidy up of comments to be more readable
This commit is contained in:
parent
8177bc262f
commit
167717b806
@ -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
|
||||
* you should have received as part of this distribution. The terms
|
||||
@ -28,32 +28,32 @@
|
||||
* IMAP unique setup
|
||||
***************************************************************************/
|
||||
typedef enum {
|
||||
IMAP_STOP, /* do nothing state, stops the state machine */
|
||||
IMAP_SERVERGREET, /* waiting for the initial greeting immediately after
|
||||
a connect */
|
||||
IMAP_STOP, /* do nothing state, stops the state machine */
|
||||
IMAP_SERVERGREET, /* waiting for the initial greeting immediately after
|
||||
a connect */
|
||||
IMAP_LOGIN,
|
||||
IMAP_STARTTLS,
|
||||
IMAP_UPGRADETLS, /* asynchronously upgrade the connection to SSL/TLS
|
||||
(multi mode only) */
|
||||
IMAP_UPGRADETLS, /* asynchronously upgrade the connection to SSL/TLS
|
||||
(multi mode only) */
|
||||
IMAP_SELECT,
|
||||
IMAP_FETCH,
|
||||
IMAP_LOGOUT,
|
||||
IMAP_LAST /* never used */
|
||||
IMAP_LAST /* never used */
|
||||
} imapstate;
|
||||
|
||||
/* imap_conn is used for struct connection-oriented data in the connectdata
|
||||
struct */
|
||||
struct imap_conn {
|
||||
struct pingpong pp;
|
||||
char *mailbox; /* what to FETCH */
|
||||
imapstate state; /* always use imap.c:state() to change state! */
|
||||
int cmdid; /* id number/index */
|
||||
const char *idstr; /* pointer to a string for which to wait for as id */
|
||||
bool ssldone; /* connect() over SSL? only relevant in multi mode */
|
||||
char *mailbox; /* Message ID to fetch */
|
||||
imapstate state; /* Always use imap.c:state() to change state! */
|
||||
int cmdid; /* Next command ID */
|
||||
const char *idstr; /* String based response ID to wait for */
|
||||
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_imaps;
|
||||
|
||||
#endif /* HEADER_CURL_IMAP_H */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user