aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/imap/camel-imap-utils.h')
-rw-r--r--camel/providers/imap/camel-imap-utils.h21
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);