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/>.
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)
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.
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
);
63 * fma_extension_get_version:
65 * optional, defaults to 1.
68 fma_extension_get_version( void )
70 static const gchar
*thisfn
= "fma_xml_module_fma_extension_get_version";
75 g_debug( "%s: version=%d", thisfn
, version
);
81 * fma_extension_list_types:
83 * mandatory starting with v. 1.
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;
98 return( FMA_TYPES_COUNT
);
102 * fma_extension_shutdown:
104 * mandatory starting with v. 1.
107 fma_extension_shutdown( void )
109 static const gchar
*thisfn
= "fma_xml_module_fma_extension_shutdown";
111 g_debug( "%s", thisfn
);