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/camel-mime-part-utils.h | |
parent | a76dccf18b6d8b854280031dbcc9187cd5744958 (diff) | |
download | gsoc2013-evolution-2a912b33018b0389672d9a4f09496b6a57071388.tar gsoc2013-evolution-2a912b33018b0389672d9a4f09496b6a57071388.tar.gz gsoc2013-evolution-2a912b33018b0389672d9a4f09496b6a57071388.tar.bz2 gsoc2013-evolution-2a912b33018b0389672d9a4f09496b6a57071388.tar.lz gsoc2013-evolution-2a912b33018b0389672d9a4f09496b6a57071388.tar.xz 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/camel-mime-part-utils.h')
-rw-r--r-- | camel/camel-mime-part-utils.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/camel/camel-mime-part-utils.h b/camel/camel-mime-part-utils.h new file mode 100644 index 0000000000..f3f4d55c82 --- /dev/null +++ b/camel/camel-mime-part-utils.h @@ -0,0 +1,49 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* camel-mime-part-utils : Utility for mime parsing and so on */ + + +/* + * + * Copyright (C) 1999 Bertrand Guiheneuf <Bertrand.Guiheneuf@inria.fr> . + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + */ + +#ifndef CAMEL_MIME_PART_UTILS_H +#define CAMEL_MIME_PART_UTILS_H 1 + +#ifdef __cplusplus +extern "C" { +#pragma } +#endif /* __cplusplus }*/ + +#include "camel-mime-part.h" + + +void camel_mime_part_construct_headers_from_stream (CamelMimePart *mime_part, + CamelStream *stream); + +void camel_mime_part_construct_content_from_stream (CamelMimePart *mime_part, + CamelStream *stream); + + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* CAMEL_MIME_PART_UTILS_H */ + |