README: add deprecation notice
[nautilus-actions.git] / src / io-xml / fma-xml-module.c
blobe71753e718b8157822d35a70310d17a2f2647628
1 /*
2 * FileManager-Actions
3 * A file-manager extension which offers configurable context menu actions.
5 * Copyright (C) 2005 The GNOME Foundation
6 * Copyright (C) 2006-2008 Frederic Ruaudel and others (see AUTHORS)
7 * Copyright (C) 2009-2015 Pierre Wieser and others (see AUTHORS)
9 * FileManager-Actions is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
14 * FileManager-Actions is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with FileManager-Actions; see the file COPYING. If not, see
21 * <http://www.gnu.org/licenses/>.
23 * Authors:
24 * Frederic Ruaudel <grumz@grumz.net>
25 * Rodrigo Moya <rodrigo@gnome-db.org>
26 * Pierre Wieser <pwieser@trychlos.org>
27 * ... and many others (see AUTHORS)
30 #ifdef HAVE_CONFIG_H
31 #include <config.h>
32 #endif
34 #include <api/fma-extension.h>
36 #include "fma-xml-provider.h"
38 /* the count of GType types provided by this extension
39 * each new GType type must
40 * - be registered in fma_extension_startup()
41 * - be addressed in fma_extension_list_types().
43 #define FMA_TYPES_COUNT 1
46 * fma_extension_startup:
48 * mandatory starting with API v. 1.
50 gboolean
51 fma_extension_startup( GTypeModule *module )
53 static const gchar *thisfn = "fma_xml_module_fma_extension_startup";
55 g_debug( "%s: module=%p", thisfn, ( void * ) module );
57 fma_xml_provider_register_type( module );
59 return( TRUE );
63 * fma_extension_get_version:
65 * optional, defaults to 1.
67 guint
68 fma_extension_get_version( void )
70 static const gchar *thisfn = "fma_xml_module_fma_extension_get_version";
71 guint version;
73 version = 1;
75 g_debug( "%s: version=%d", thisfn, version );
77 return( version );
81 * fma_extension_list_types:
83 * mandatory starting with v. 1.
85 guint
86 fma_extension_list_types( const GType **types )
88 static const gchar *thisfn = "fma_xml_module_fma_extension_list_types";
89 static GType types_list [1+FMA_TYPES_COUNT];
91 g_debug( "%s: types=%p", thisfn, ( void * ) types );
93 types_list[0] = FMA_TYPE_XML_PROVIDER;
95 types_list[FMA_TYPES_COUNT] = 0;
96 *types = types_list;
98 return( FMA_TYPES_COUNT );
102 * fma_extension_shutdown:
104 * mandatory starting with v. 1.
106 void
107 fma_extension_shutdown( void )
109 static const gchar *thisfn = "fma_xml_module_fma_extension_shutdown";
111 g_debug( "%s", thisfn );