No issues found
Tool | Failure ID | Location | Function | Message | Data |
---|---|---|---|---|---|
clang-analyzer | no-output-found | e-mail-extension.c | Message(text='Unable to locate XML output from invoke-clang-analyzer') | None | |
clang-analyzer | no-output-found | e-mail-extension.c | Message(text='Unable to locate XML output from invoke-clang-analyzer') | None |
1 /*
2 * e-mail-extension.c
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) version 3.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with the program; if not, see <http://www.gnu.org/licenses/>
16 *
17 */
18
19 #include "e-mail-extension.h"
20
21 #include <glib-object.h>
22
23 G_DEFINE_INTERFACE (EMailExtension, e_mail_extension, G_TYPE_OBJECT)
24
25 static void
26 e_mail_extension_default_init (EMailExtensionInterface *iface)
27 {
28
29 }
30
31 /**
32 * EMailExtension:
33 *
34 * The #EMailExtension is an abstract interface for all extensions for
35 * #EMailParser and #EmailFormatter.
36 *
37 * The interface is further extended by #EMailParserExtension and
38 * #EMailFormatterExtension interfaces which define final API for both types
39 * of extensions.
40 */
41
42 /**
43 * e_mail_extension_get_mime_types:
44 * @extension: an #EMailExtension
45 *
46 * A virtual function reimplemented in all mail extensions that returns a
47 * @NULL-terminated array of mime types that the particular extension is able
48 * to process.
49 *
50 * The mime-types can be either full (like text/plain), or with common subtype,
51 * e.g. text/ *. User should try to find the best mathing mime-type handler and
52 * use the latter type only as a fallback.
53 *
54 * Return value: a @NULL-terminated array or @NULL
55 */
56 const gchar **
57 e_mail_extension_get_mime_types (EMailExtension *extension)
58 {
59 EMailExtensionInterface *interface;
60
61 g_return_val_if_fail (E_IS_MAIL_EXTENSION (extension), NULL);
62
63 interface = E_MAIL_EXTENSION_GET_INTERFACE (extension);
64 g_return_val_if_fail (interface->mime_types != NULL, NULL);
65
66 return interface->mime_types (extension);
67 }