diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-12-05 23:49:19 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-12-08 03:01:04 +0800 |
commit | 4611bcd7b8958c5ffadccc8b68989c839cf3f144 (patch) | |
tree | 3bb49a586ad0c41b6d215aac868f5acfaad1c201 /em-format/e-mail-parser-extension.c | |
parent | 91822b42dc7b5eb64cad2626f9fc620a2ee6a2c8 (diff) | |
download | gsoc2013-evolution-4611bcd7b8958c5ffadccc8b68989c839cf3f144.tar.gz gsoc2013-evolution-4611bcd7b8958c5ffadccc8b68989c839cf3f144.tar.zst gsoc2013-evolution-4611bcd7b8958c5ffadccc8b68989c839cf3f144.zip |
EMailParserExtension cleanups.
Diffstat (limited to 'em-format/e-mail-parser-extension.c')
-rw-r--r-- | em-format/e-mail-parser-extension.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/em-format/e-mail-parser-extension.c b/em-format/e-mail-parser-extension.c index 589fae31f7..72f1fd8445 100644 --- a/em-format/e-mail-parser-extension.c +++ b/em-format/e-mail-parser-extension.c @@ -25,6 +25,12 @@ G_DEFINE_INTERFACE ( e_mail_parser_extension, E_TYPE_MAIL_EXTENSION) +static guint32 +mail_parser_extension_get_flags (EMailParserExtension *extension) +{ + return 0; +} + /** * EMailParserExtension: * @@ -33,9 +39,9 @@ G_DEFINE_INTERFACE ( */ static void -e_mail_parser_extension_default_init (EMailParserExtensionInterface *iface) +e_mail_parser_extension_default_init (EMailParserExtensionInterface *interface) { - + interface->get_flags = mail_parser_extension_get_flags; } /** @@ -94,8 +100,7 @@ e_mail_parser_extension_get_flags (EMailParserExtension *extension) g_return_val_if_fail (E_IS_MAIL_PARSER_EXTENSION (extension), 0); interface = E_MAIL_PARSER_EXTENSION_GET_INTERFACE (extension); - if (interface->get_flags == NULL) - return 0; + g_return_val_if_fail (interface->get_flags != NULL, 0); return interface->get_flags (extension); } |