diff options
author | Brendan Cully <brendan@kublai.com> | 2006-08-10 20:20:27 +0000 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2006-08-10 20:20:27 +0000 |
commit | cd87ba0dac2e51bf5fad67ee9543ad3656fb8a50 (patch) | |
tree | b5b184b68f60363c16c82cce68231f1768101fc6 /imap/imap_private.h | |
parent | 656324b34ae00cfe233604ee44da8e1c6155fbc8 (diff) |
Add type field for IMAP command data structure, check it before use.
Diffstat (limited to 'imap/imap_private.h')
-rw-r--r-- | imap/imap_private.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/imap/imap_private.h b/imap/imap_private.h index ac97deaf..ecae3c34 100644 --- a/imap/imap_private.h +++ b/imap/imap_private.h @@ -180,6 +180,13 @@ typedef struct int state; } IMAP_COMMAND; +typedef enum +{ + IMAP_CT_NONE = 0, + IMAP_CT_LIST, + IMAP_CT_STATUS +} IMAP_COMMAND_TYPE; + typedef struct { /* This data is specific to a CONNECTION to an IMAP server */ @@ -200,8 +207,11 @@ typedef struct time_t lastread; /* last time we read a command for the server */ char* buf; unsigned int blen; - void* cmddata; /* if set, the response parser will store results for - * complicated commands here. */ + + /* if set, the response parser will store results for complicated commands + * here. */ + IMAP_COMMAND_TYPE cmdtype; + void* cmddata; /* command queue */ IMAP_COMMAND cmds[IMAP_PIPELINE_DEPTH]; |