diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-04-28 10:33:05 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-04-28 10:33:05 +0800 |
commit | af5958acaa62952d7ad0b729ad477dbe570eab6d (patch) | |
tree | 376b0ee99e80da1ba5d72b01080d3c345852c2df /mail/em-format-quote.h | |
parent | a9e1c0f8e729915f756ee38854e20a8f04f3684b (diff) | |
download | gsoc2013-evolution-af5958acaa62952d7ad0b729ad477dbe570eab6d.tar.gz gsoc2013-evolution-af5958acaa62952d7ad0b729ad477dbe570eab6d.tar.zst gsoc2013-evolution-af5958acaa62952d7ad0b729ad477dbe570eab6d.zip |
Cosmetic cleanups for EMFormat headers
Diffstat (limited to 'mail/em-format-quote.h')
-rw-r--r-- | mail/em-format-quote.h | 44 |
1 files changed, 35 insertions, 9 deletions
diff --git a/mail/em-format-quote.h b/mail/em-format-quote.h index 6b48fb87b4..87f0151a50 100644 --- a/mail/em-format-quote.h +++ b/mail/em-format-quote.h @@ -20,24 +20,47 @@ * */ -#ifndef _EM_FORMAT_QUOTE_H -#define _EM_FORMAT_QUOTE_H +#ifndef EM_FORMAT_QUOTE_H +#define EM_FORMAT_QUOTE_H +#include <camel/camel-stream.h> #include "mail/em-format.h" -typedef struct _EMFormatQuote EMFormatQuote; -typedef struct _EMFormatQuoteClass EMFormatQuoteClass; +/* Standard GObject macros */ +#define EM_TYPE_FORMAT_QUOTE \ + (em_format_quote_get_type ()) +#define EM_FORMAT_QUOTE(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), EM_TYPE_FORMAT_QUOTE, EMFormatQuote)) +#define EM_FORMAT_QUOTE_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), EM_TYPE_FORMAT_QUOTE, EMFormatQuoteClass)) +#define EM_IS_FORMAT_QUOTE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), EM_TYPE_FORMAT_QUOTE)) +#define EM_IS_FORMAT_QUOTE_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), EM_TYPE_FORMAT_QUOTE)) +#define EM_FORMAT_QUOTE_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), EM_TYPE_FORMAT_QUOTE, EMFormatQuoteClass)) #define EM_FORMAT_QUOTE_CITE (1<<0) #define EM_FORMAT_QUOTE_HEADERS (1<<1) +G_BEGIN_DECLS + +typedef struct _EMFormatQuote EMFormatQuote; +typedef struct _EMFormatQuoteClass EMFormatQuoteClass; +typedef struct _EMFormatQuotePrivate EMFormatQuotePrivate; + struct _EMFormatQuote { EMFormat format; - struct _EMFormatQuotePrivate *priv; + EMFormatQuotePrivate *priv; char *credits; - struct _CamelStream *stream; + CamelStream *stream; guint32 flags; guint32 text_html_flags; @@ -48,8 +71,11 @@ struct _EMFormatQuoteClass { EMFormatClass format_class; }; -GType em_format_quote_get_type (void); +GType em_format_quote_get_type (void); +EMFormatQuote * em_format_quote_new (const gchar *credits, + CamelStream *stream, + guint32 flags); -EMFormatQuote *em_format_quote_new (const char *credits, struct _CamelStream *stream, guint32 flags); +G_END_DECLS -#endif /* !_EM_FORMAT_QUOTE_H */ +#endif /* EM_FORMAT_QUOTE_H */ |