From 4611bcd7b8958c5ffadccc8b68989c839cf3f144 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 5 Dec 2012 10:49:19 -0500 Subject: EMailParserExtension cleanups. --- em-format/e-mail-parser-extension.h | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'em-format/e-mail-parser-extension.h') diff --git a/em-format/e-mail-parser-extension.h b/em-format/e-mail-parser-extension.h index 0dcff76212..101c1320dc 100644 --- a/em-format/e-mail-parser-extension.h +++ b/em-format/e-mail-parser-extension.h @@ -50,16 +50,25 @@ G_BEGIN_DECLS typedef struct _EMailParserExtension EMailParserExtension; typedef struct _EMailParserExtensionInterface EMailParserExtensionInterface; +/** + * EMailParserExtensionFlags: + * @E_MAIL_PARSER_EXTENSION_INLINE: + * Don't parse as attachment. + * @E_MAIL_PARSER_EXTENSION_INLINE_DISPOSITION: + * Always expand. + * @E_MAIL_PARSER_EXTENSION_COMPOUND_TYPE: + * Always check what's inside. + **/ typedef enum { - E_MAIL_PARSER_EXTENSION_INLINE = 1 << 0, /* Don't parse as attachment */ - E_MAIL_PARSER_EXTENSION_INLINE_DISPOSITION = 1 << 1, /* Always expand */ - E_MAIL_PARSER_EXTENSION_COMPOUND_TYPE = 1 << 2 /* Always check what's inside */ + E_MAIL_PARSER_EXTENSION_INLINE = 1 << 0, + E_MAIL_PARSER_EXTENSION_INLINE_DISPOSITION = 1 << 1, + E_MAIL_PARSER_EXTENSION_COMPOUND_TYPE = 1 << 2 } EMailParserExtensionFlags; struct _EMailParserExtensionInterface { EMailExtensionInterface parent_interface; - GSList * (*parse) (EMailParserExtension *extension, + GSList * (*parse) (EMailParserExtension *extension, EMailParser *parser, CamelMimePart *mime_part, GString *part_id, @@ -70,14 +79,12 @@ struct _EMailParserExtensionInterface { }; GType e_mail_parser_extension_get_type - (void); - -GSList * e_mail_parser_extension_parse (EMailParserExtension *extension, + (void) G_GNUC_CONST; +GSList * e_mail_parser_extension_parse (EMailParserExtension *extension, EMailParser *parser, CamelMimePart *mime_part, GString *part_id, GCancellable *cancellable); - guint32 e_mail_parser_extension_get_flags (EMailParserExtension *extension); -- cgit v1.2.3