aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-parser-extension.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-12-08 01:44:32 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-12-08 03:01:05 +0800
commitc10235e6dd09d93fc6bbdeb8ef4d800be7c6f6d5 (patch)
tree458a2e3b37312d69627c7385eed5562da013f4a5 /em-format/e-mail-parser-extension.h
parentcab6eac8f14974ea1c2fedaf9143e98cf630c489 (diff)
downloadgsoc2013-evolution-c10235e6dd09d93fc6bbdeb8ef4d800be7c6f6d5.tar.gz
gsoc2013-evolution-c10235e6dd09d93fc6bbdeb8ef4d800be7c6f6d5.tar.zst
gsoc2013-evolution-c10235e6dd09d93fc6bbdeb8ef4d800be7c6f6d5.zip
EMailParserExtension: Convert get_flags() to an enum field.
Of the parser extensions that override get_flags(), they all return a fixed set of flags. So we don't need an instance of the extension to obtain its flags. Just make it an EMailParserExtensionFlags field in the class structure.
Diffstat (limited to 'em-format/e-mail-parser-extension.h')
-rw-r--r--em-format/e-mail-parser-extension.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/em-format/e-mail-parser-extension.h b/em-format/e-mail-parser-extension.h
index e510a15591..fdd48bf617 100644
--- a/em-format/e-mail-parser-extension.h
+++ b/em-format/e-mail-parser-extension.h
@@ -84,13 +84,15 @@ struct _EMailParserExtensionClass {
* wildcard (e.g. "text/ *"). */
const gchar **mime_types;
+ /* See the flag descriptions above. */
+ EMailParserExtensionFlags flags;
+
gboolean (*parse) (EMailParserExtension *extension,
EMailParser *parser,
CamelMimePart *mime_part,
GString *part_id,
GCancellable *cancellable,
GQueue *out_mail_parts);
- guint32 (*get_flags) (EMailParserExtension *extension);
};
GType e_mail_parser_extension_get_type
@@ -101,8 +103,6 @@ gboolean e_mail_parser_extension_parse (EMailParserExtension *extension,
GString *part_id,
GCancellable *cancellable,
GQueue *out_mail_parts);
-guint32 e_mail_parser_extension_get_flags
- (EMailParserExtension *extension);
G_END_DECLS