diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-12-07 05:40:13 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-12-08 03:01:05 +0800 |
commit | 54455ca1ad6cae527544fed12d0de4ae95341082 (patch) | |
tree | b223d428459e3be79d1162d8217be6c2856f643b /em-format/e-mail-formatter-extension.h | |
parent | 9d34f72ec1b99d58ee1c3a6d1a964a6dde166f79 (diff) | |
download | gsoc2013-evolution-54455ca1ad6cae527544fed12d0de4ae95341082.tar.gz gsoc2013-evolution-54455ca1ad6cae527544fed12d0de4ae95341082.tar.zst gsoc2013-evolution-54455ca1ad6cae527544fed12d0de4ae95341082.zip |
Remove EMailExtension.
EMailExtension is now too trivial to keep as a standalone interface.
Add a 'mime_types' string array to the EMailFormatterExtension and
EMailFormatterParser interface structs.
Alter e_mail_extension_registry_add_extension() to take a 'mime_types'
string array and the GType of an extension to instantiate, rather than
the extension instance directly.
e_mail_extension_registry_remove_extension() is no longer needed.
Diffstat (limited to 'em-format/e-mail-formatter-extension.h')
-rw-r--r-- | em-format/e-mail-formatter-extension.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/em-format/e-mail-formatter-extension.h b/em-format/e-mail-formatter-extension.h index e2c4ee6cf1..9a3f3925c4 100644 --- a/em-format/e-mail-formatter-extension.h +++ b/em-format/e-mail-formatter-extension.h @@ -19,7 +19,6 @@ #ifndef E_MAIL_FORMATTER_EXTENSION_H #define E_MAIL_FORMATTER_EXTENSION_H -#include <em-format/e-mail-extension.h> #include <em-format/e-mail-part.h> #include <em-format/e-mail-formatter.h> #include <camel/camel.h> @@ -53,7 +52,12 @@ typedef struct _EMailFormatterExtension EMailFormatterExtension; typedef struct _EMailFormatterExtensionInterface EMailFormatterExtensionInterface; struct _EMailFormatterExtensionInterface { - EMailExtensionInterface parent_interface; + GTypeInterface parent_interface; + + /* This is a NULL-terminated array of supported MIME types. + * The MIME types can be exact (e.g. "text/plain") or use a + * wildcard (e.g. "text/ *"). */ + const gchar **mime_types; gboolean (*format) (EMailFormatterExtension *extension, EMailFormatter *formatter, |