diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-05-16 07:46:27 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-05-16 07:46:27 +0800 |
commit | 442cb01bee426d4a716485759ea093c773f5321a (patch) | |
tree | 3bcd14da99c58e946a8ae7aaa192d2f27834b20e /camel/providers/imap/camel-imap-utils.h | |
parent | 80836cd3871291deb97325372a25d6f4a5ff2a4d (diff) | |
download | gsoc2013-evolution-442cb01bee426d4a716485759ea093c773f5321a.tar gsoc2013-evolution-442cb01bee426d4a716485759ea093c773f5321a.tar.gz gsoc2013-evolution-442cb01bee426d4a716485759ea093c773f5321a.tar.bz2 gsoc2013-evolution-442cb01bee426d4a716485759ea093c773f5321a.tar.lz gsoc2013-evolution-442cb01bee426d4a716485759ea093c773f5321a.tar.xz gsoc2013-evolution-442cb01bee426d4a716485759ea093c773f5321a.tar.zst gsoc2013-evolution-442cb01bee426d4a716485759ea093c773f5321a.zip |
New function to parse a NAMESPACE response properly.
2002-05-15 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-utils.c
(imap_parse_namespace_response): New function to parse a NAMESPACE
response properly.
(imap_namespaces_destroy): New function to destroy the returned
structure from the above function.
svn path=/trunk/; revision=16927
Diffstat (limited to 'camel/providers/imap/camel-imap-utils.h')
-rw-r--r-- | camel/providers/imap/camel-imap-utils.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/camel/providers/imap/camel-imap-utils.h b/camel/providers/imap/camel-imap-utils.h index 7078e12335..9692cc4e38 100644 --- a/camel/providers/imap/camel-imap-utils.h +++ b/camel/providers/imap/camel-imap-utils.h @@ -35,6 +35,21 @@ extern "C" { const char *imap_next_word (const char *buf); +struct _namespace { + struct _namespace *next; + char *prefix; + char delim; +}; + +struct _namespaces { + struct _namespace *personal; + struct _namespace *other; + struct _namespace *shared; +}; + +void imap_namespaces_destroy (struct _namespaces *namespaces); +struct _namespaces *imap_parse_namespace_response (const char *response); + #define IMAP_LIST_FLAG_NOINFERIORS (1 << 0) #define IMAP_LIST_FLAG_NOSELECT (1 << 1) #define IMAP_LIST_FLAG_MARKED (1 << 2) @@ -51,7 +66,7 @@ guint32 imap_parse_flag_list (char **flag_list); enum { IMAP_STRING, IMAP_NSTRING, IMAP_ASTRING }; -char *imap_parse_string_generic (char **str_p, size_t *len, int type); +char *imap_parse_string_generic (const char **str_p, size_t *len, int type); #define imap_parse_string(str_p, len_p) \ imap_parse_string_generic (str_p, len_p, IMAP_STRING) @@ -60,13 +75,13 @@ char *imap_parse_string_generic (char **str_p, size_t *len, int type); #define imap_parse_astring(str_p, len_p) \ imap_parse_string_generic (str_p, len_p, IMAP_ASTRING) -void imap_parse_body (char **body_p, CamelFolder *folder, +void imap_parse_body (const char **body_p, CamelFolder *folder, CamelMessageContentInfo *ci); gboolean imap_is_atom (const char *in); char *imap_quote_string (const char *str); -void imap_skip_list (char **str_p); +void imap_skip_list (const char **str_p); char *imap_uid_array_to_set (CamelFolderSummary *summary, GPtrArray *uids, int uid, ssize_t maxlen, int *lastuid); GPtrArray *imap_uid_set_to_array (CamelFolderSummary *summary, const char *uids); |