Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / libedataserver / e-data-server-module.h
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* e-data-server-module.h
3  *
4  * Copyright (C) 2004  Novell, Inc.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of version 2 of the GNU Lesser General Public
8  * License as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  *
20  * Author: Chris Toshok <toshok@ximian.com>
21  */
22
23 #ifndef _E_DATA_SERVER_MODULE_H
24 #define _E_DATA_SERVER_MODULE_H
25
26 #include <glib-object.h>
27
28 G_BEGIN_DECLS
29
30 void   e_data_server_module_init             (void);
31 GList *e_data_server_get_extensions_for_type (GType type);
32 void   e_data_server_extension_list_free     (GList *list);
33 void   e_data_server_module_remove_unused    (void);
34
35 /* Add a type to the module interface - allows EDS to add its own modules
36  * without putting them in separate shared libraries */
37 void   e_data_server_module_add_type         (GType  type);
38
39 /* The following three functions should exist in modules that are
40    written to be dynamically loaded */
41 void                 eds_module_initialize (GTypeModule *module);
42 void                 eds_module_shutdown   (void);
43 void                 eds_module_list_types (const GType **types, int *num_types);
44
45 G_END_DECLS
46
47 #endif /* _E_DATA_SERVER_MODULE_H */