diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 1999-08-26 17:44:33 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-08-26 17:44:33 +0800 |
commit | 2a912b33018b0389672d9a4f09496b6a57071388 (patch) | |
tree | a34375a629d3d36575eae930a39ee3e76f2fba3c /camel/gmime-utils.h | |
parent | a76dccf18b6d8b854280031dbcc9187cd5744958 (diff) | |
download | gsoc2013-evolution-2a912b33018b0389672d9a4f09496b6a57071388.tar.gz gsoc2013-evolution-2a912b33018b0389672d9a4f09496b6a57071388.tar.zst gsoc2013-evolution-2a912b33018b0389672d9a4f09496b6a57071388.zip |
new file, groups mime-part related utils. Meant to be used by providers
1999-08-26 bertrand <Bertrand.Guiheneuf@aful.org>
* 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
Diffstat (limited to 'camel/gmime-utils.h')
-rw-r--r-- | camel/gmime-utils.h | 24 |
1 files changed, 20 insertions, 4 deletions
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 <stdio.h> #include <camel-stream.h> -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); |