aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-parser-extension.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-12-05 23:49:19 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-12-08 03:01:04 +0800
commit4611bcd7b8958c5ffadccc8b68989c839cf3f144 (patch)
tree3bb49a586ad0c41b6d215aac868f5acfaad1c201 /em-format/e-mail-parser-extension.c
parent91822b42dc7b5eb64cad2626f9fc620a2ee6a2c8 (diff)
downloadgsoc2013-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.c13
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);
}