From 2a912b33018b0389672d9a4f09496b6a57071388 Mon Sep 17 00:00:00 2001 From: bertrand Date: Thu, 26 Aug 1999 09:44:33 +0000 Subject: new file, groups mime-part related utils. Meant to be used by providers 1999-08-26 bertrand * camel/camel-mime-part-utils.c: new file, groups mime-part related utils. Meant to be used by providers subclassing MimeMessage. (camel_mime_part_construct_headers_from_stream): (camel_mime_part_construct_content_from_stream): no more useless temporary hash table. * camel/camel-mime-part.c (_construct_from_stream): calls mime-part-utils functions now. * camel/gmime-utils.c (_store_header_pair_from_string): do not use hash table to store header, use an array instead. * MimePart cleanup. Not complete yet. Content must not be parsed when constructing but only when content object is requested. Default implementation will keep content in a stream. svn path=/trunk/; revision=1144 --- camel/gmime-utils.h | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'camel/gmime-utils.h') diff --git a/camel/gmime-utils.h b/camel/gmime-utils.h index 5c99ca3d66..0c12f6bfb2 100644 --- a/camel/gmime-utils.h +++ b/camel/gmime-utils.h @@ -35,11 +35,27 @@ extern "C" { #include #include -void gmime_write_header_pair_to_stream (CamelStream *stream, const gchar* name, const gchar *value); -void write_header_table_to_stream (CamelStream *stream, GHashTable *header_table); -void write_header_with_glist_to_stream (CamelStream *stream, const gchar *header_name, GList *header_values, const gchar *separator); +typedef struct +{ + gchar *name; + gchar *value; -GHashTable *get_header_table_from_stream (CamelStream *stream); +} Rfc822Header; + + +void gmime_write_header_pair_to_stream (CamelStream *stream, + const gchar* name, + const gchar *value); + +void write_header_table_to_stream (CamelStream *stream, + GHashTable *header_table); + +void write_header_with_glist_to_stream (CamelStream *stream, + const gchar *header_name, + GList *header_values, + const gchar *separator); + +GArray *get_header_array_from_stream (CamelStream *stream); gchar *gmime_read_line_from_stream (CamelStream *stream); -- cgit v1.2.3