From baf3f78660a144ce364d8a27b5d41a7600b7ef21 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 23 Jul 2003 17:21:57 +0000 Subject: Revert my previous changes to this function. 2003-07-23 Jeffrey Stedfast * camel-mime-message.c (find_best_encoding): Revert my previous changes to this function. * camel-mime-utils.h: Revert previous changes. * camel-mime-part.h: Revert previous changes. * camel-mime-part-utils.c: Revert previous changes. * camel-data-wrapper.c (camel_data_wrapper_init): Revert previous changes. (write_to_stream): Revert previous changes. svn path=/trunk/; revision=21920 --- camel/camel-mime-part.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'camel/camel-mime-part.h') diff --git a/camel/camel-mime-part.h b/camel/camel-mime-part.h index d53b660f50..c925643f24 100644 --- a/camel/camel-mime-part.h +++ b/camel/camel-mime-part.h @@ -31,7 +31,7 @@ #ifdef __cplusplus extern "C" { #pragma } -#endif /* __cplusplus */ +#endif /* __cplusplus }*/ #include #include @@ -42,8 +42,23 @@ extern "C" { #define CAMEL_MIME_PART_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_MIME_PART_TYPE, CamelMimePartClass)) #define CAMEL_IS_MIME_PART(o) (CAMEL_CHECK_TYPE((o), CAMEL_MIME_PART_TYPE)) +/* note, if you change this, make sure you change the 'encodings' array in camel-mime-part.c */ +enum _CamelMimePartEncodingType { + CAMEL_MIME_PART_ENCODING_DEFAULT, + CAMEL_MIME_PART_ENCODING_7BIT, + CAMEL_MIME_PART_ENCODING_8BIT, + CAMEL_MIME_PART_ENCODING_BASE64, + CAMEL_MIME_PART_ENCODING_QUOTEDPRINTABLE, + CAMEL_MIME_PART_ENCODING_BINARY, + CAMEL_MIME_PART_ENCODING_UUENCODE, + CAMEL_MIME_PART_NUM_ENCODINGS +}; +typedef enum _CamelMimePartEncodingType CamelMimePartEncodingType; + + /* Do not change these values directly, you would regret it one day */ -struct _CamelMimePart { +struct _CamelMimePart +{ CamelMedium parent_object; CamelContentType *content_type; -- cgit v1.2.3