evolution-3.6.4/modules/mail/evolution-module-mail.c

No issues found

Incomplete coverage

Tool Failure ID Location Function Message Data
clang-analyzer no-output-found evolution-module-mail.c Message(text='Unable to locate XML output from invoke-clang-analyzer') None
clang-analyzer no-output-found evolution-module-mail.c Message(text='Unable to locate XML output from invoke-clang-analyzer') None
Failure running clang-analyzer ('no-output-found')
Message
Unable to locate XML output from invoke-clang-analyzer
Failure running clang-analyzer ('no-output-found')
Message
Unable to locate XML output from invoke-clang-analyzer
 1 /*
 2  * evolution-module-mail.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  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
19  *
20  */
21 
22 #ifdef HAVE_CONFIG_H
23 #include <config.h>
24 #endif
25 
26 #include "e-mail-attachment-handler.h"
27 
28 #include "e-mail-config-hook.h"
29 #include "e-mail-event-hook.h"
30 
31 #include "e-mail-shell-backend.h"
32 #include "e-mail-shell-content.h"
33 #include "e-mail-shell-sidebar.h"
34 #include "e-mail-shell-view.h"
35 
36 #include "e-mail-config-format-html.h"
37 #include "e-mail-config-reader.h"
38 #include "e-mail-config-web-view.h"
39 #include "e-mail-config-web-view-gtkhtml.h"
40 
41 #include "em-account-prefs.h"
42 
43 /* Module Entry Points */
44 void e_module_load (GTypeModule *type_module);
45 void e_module_unload (GTypeModule *type_module);
46 const gchar * g_module_check_init (GModule *module);
47 
48 G_MODULE_EXPORT void
49 e_module_load (GTypeModule *type_module)
50 {
51 	/* Register dynamically loaded types. */
52 
53 	e_mail_attachment_handler_register_type (type_module);
54 
55 	e_mail_config_hook_register_type (type_module);
56 	e_mail_event_hook_register_type (type_module);
57 
58 	e_mail_shell_backend_type_register (type_module);
59 	e_mail_shell_content_type_register (type_module);
60 	e_mail_shell_sidebar_type_register (type_module);
61 	e_mail_shell_view_register_type (type_module);
62 
63 	e_mail_config_format_html_type_register (type_module);
64 	e_mail_config_reader_type_register (type_module);
65 	e_mail_config_web_view_type_register (type_module);
66 	e_mail_config_web_view_gtkhtml_type_register (type_module);
67 
68 	em_account_prefs_type_register (type_module);
69 }
70 
71 G_MODULE_EXPORT void
72 e_module_unload (GTypeModule *type_module)
73 {
74 }
75 
76 G_MODULE_EXPORT const gchar *
77 g_module_check_init (GModule *module)
78 {
79 	/* FIXME Until mail is split into a module library and a
80 	 *       reusable shared library, prevent the module from
81 	 *       being unloaded.  Unloading the module resets all
82 	 *       static variables, which screws up foo_get_type()
83 	 *       functions among other things. */
84 	g_module_make_resident (module);
85 
86 	return NULL;
87 }