From f64b3bb5f2d3f4fa6e05fcc9223aff78fd8c2f12 Mon Sep 17 00:00:00 2001 From: Matthew Loper Date: Mon, 24 Jan 2000 14:43:06 +0000 Subject: new function, broken out from 'camel_formatter_make_html'. * camel/camel-formatter.c (write_header_info_to_stream): new function, broken out from 'camel_formatter_make_html'. (write_mimepart_to_stream): same. (find_text_body_part_in_multipart_related): new function. (camel_formatter_make_html): Now tries to deal with multipart/related, multipart/alternate, and text/(plain|html). svn path=/trunk/; revision=1619 --- camel/camel-formatter.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'camel/camel-formatter.h') diff --git a/camel/camel-formatter.h b/camel/camel-formatter.h index 16942fc5ce..1bcbb2d01a 100644 --- a/camel/camel-formatter.h +++ b/camel/camel-formatter.h @@ -25,8 +25,13 @@ #ifndef CAMEL_FORMATTER_H #define CAMEL_FORMATTER_H +#ifdef __cplusplus +extern "C" { +#pragma } +#endif /* __cplusplus }*/ + #include -#include "camel-mime-message.h" +#include "camel.h" #define CAMEL_FORMATTER_TYPE (camel_formatter_get_type ()) #define CAMEL_FORMATTER(obj) (GTK_CHECK_CAST((obj), CAMEL_FORMATTER_TYPE, CamelDataWrapper)) @@ -35,11 +40,13 @@ typedef struct _CamelFormatterPrivate CamelFormatterPrivate; -typedef struct +typedef struct _CamelFormatter CamelFormatter; + +struct _CamelFormatter { GtkObject parent_object; CamelFormatterPrivate *priv; -} CamelFormatter; +}; typedef struct { GtkObjectClass parent_class; @@ -50,7 +57,7 @@ typedef struct { GtkType camel_formatter_get_type (void); /* Public functions */ -CamelFormatter* camel_formatter_new (); +CamelFormatter* camel_formatter_new (void); /* The main job of CamelFormatter is to take a mime message, and produce html from it. */ @@ -58,5 +65,10 @@ void camel_formatter_make_html (CamelFormatter* cmf, CamelMimeMessage *msg, CamelStream* stream_out); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif // CAMEL_FORMATTER_H -- cgit