No issues found
Tool | Failure ID | Location | Function | Message | Data |
---|---|---|---|---|---|
clang-analyzer | no-output-found | e-mail-config-hook.c | Message(text='Unable to locate XML output from invoke-clang-analyzer') | None | |
clang-analyzer | no-output-found | e-mail-config-hook.c | Message(text='Unable to locate XML output from invoke-clang-analyzer') | None |
1 /*
2 * e-mail-config-hook.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-config-hook.h"
27
28 #include "e-util/e-config.h"
29 #include "mail/em-config.h"
30
31 static const EConfigHookTargetMask no_masks[] = {
32 { NULL }
33 };
34
35 static const EConfigHookTargetMap targets[] = {
36 { "folder", EM_CONFIG_TARGET_FOLDER, no_masks },
37 { "prefs", EM_CONFIG_TARGET_PREFS, no_masks },
38 { "settings", EM_CONFIG_TARGET_SETTINGS, no_masks },
39 { NULL }
40 };
41
42 static void
43 mail_config_hook_class_init (EConfigHookClass *class)
44 {
45 EPluginHookClass *plugin_hook_class;
46 gint ii;
47
48 plugin_hook_class = E_PLUGIN_HOOK_CLASS (class);
49 plugin_hook_class->id = "org.gnome.evolution.mail.config:1.0";
50
51 class->config_class = g_type_class_ref (em_config_get_type ());
52
53 for (ii = 0; targets[ii].type != NULL; ii++)
54 e_config_hook_class_add_target_map (
55 (EConfigHookClass *) class, &targets[ii]);
56 }
57
58 void
59 e_mail_config_hook_register_type (GTypeModule *type_module)
60 {
61 const GTypeInfo type_info = {
62 sizeof (EConfigHookClass),
63 (GBaseInitFunc) NULL,
64 (GBaseFinalizeFunc) NULL,
65 (GClassInitFunc) mail_config_hook_class_init,
66 (GClassFinalizeFunc) NULL,
67 NULL, /* class_data */
68 sizeof (EConfigHook),
69 0, /* n_preallocs */
70 (GInstanceInitFunc) NULL,
71 NULL /* value_table */
72 };
73
74 g_type_module_register_type (
75 type_module, e_config_hook_get_type (),
76 "EMailConfigHook", &type_info, 0);
77 }