Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / addressbook / backends / file / e-book-backend-file-factory.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 /* e-book-backend-file-factory.c - File contact backend factory.
4  *
5  * Copyright (C) 2005 Novell, Inc.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of version 2 of the GNU Lesser General Public
9  * License as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this program; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  * Authors: Chris Toshok <toshok@ximian.com>
22  */
23
24 #ifdef HAVE_CONFIG_H
25 #include <config.h>
26 #endif
27
28 #include <string.h>
29
30 #include "libedataserver/e-data-server-module.h"
31 #include "libedata-book/e-book-backend-factory.h"
32 #include "e-book-backend-file.h"
33
34 E_BOOK_BACKEND_FACTORY_SIMPLE (file, File, e_book_backend_file_new)
35
36 static GType  file_type;
37
38 void
39 eds_module_initialize (GTypeModule *module)
40 {
41         file_type = _file_factory_get_type (module);
42 }
43
44 void
45 eds_module_shutdown   (void)
46 {
47 }
48
49 void
50 eds_module_list_types (const GType **types, int *num_types)
51 {
52         *types = & file_type;
53         *num_types = 1;
54 }
55