No issues found
1 /*
2 * evolution-book-config-local.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 <config.h>
20 #include <glib/gi18n-lib.h>
21
22 #include <libebackend/libebackend.h>
23
24 #include <misc/e-book-source-config.h>
25 #include <misc/e-source-config-backend.h>
26
27 typedef ESourceConfigBackend EBookConfigLocal;
28 typedef ESourceConfigBackendClass EBookConfigLocalClass;
29
30 /* Module Entry Points */
31 void e_module_load (GTypeModule *type_module);
32 void e_module_unload (GTypeModule *type_module);
33
34 /* Forward Declarations */
35 GType e_book_config_local_get_type (void);
36
37 G_DEFINE_DYNAMIC_TYPE (
38 EBookConfigLocal,
39 e_book_config_local,
40 E_TYPE_SOURCE_CONFIG_BACKEND)
41
42 static void
43 e_book_config_local_class_init (ESourceConfigBackendClass *class)
44 {
45 EExtensionClass *extension_class;
46
47 extension_class = E_EXTENSION_CLASS (class);
48 extension_class->extensible_type = E_TYPE_BOOK_SOURCE_CONFIG;
49
50 class->parent_uid = "local-stub";
51 class->backend_name = "local";
52 }
53
54 static void
55 e_book_config_local_class_finalize (ESourceConfigBackendClass *class)
56 {
57 }
58
59 static void
60 e_book_config_local_init (ESourceConfigBackend *backend)
61 {
62 }
63
64 G_MODULE_EXPORT void
65 e_module_load (GTypeModule *type_module)
66 {
67 e_book_config_local_register_type (type_module);
68 }
69
70 G_MODULE_EXPORT void
71 e_module_unload (GTypeModule *type_module)
72 {
73 }