GnuCash  4.11-243-g1cac132214+
gnc-plugin-register.h
1 /*
2  * gnc-plugin-register.h --
3  *
4  * Copyright (C) 2003 Jan Arne Petersen
5  * Author: Jan Arne Petersen <jpetersen@uni-bonn.de>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of
10  * the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, contact:
19  *
20  * Free Software Foundation Voice: +1-617-542-5942
21  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
22  * Boston, MA 02110-1301, USA gnu@gnu.org
23  */
24 
25 #ifndef __GNC_PLUGIN_REGISTER_H
26 #define __GNC_PLUGIN_REGISTER_H
27 
28 #include "gnc-plugin.h"
29 
30 G_BEGIN_DECLS
31 
32 /* type macros */
33 #define GNC_TYPE_PLUGIN_REGISTER (gnc_plugin_register_get_type ())
34 #define GNC_PLUGIN_REGISTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_REGISTER, GncPluginRegister))
35 #define GNC_PLUGIN_REGISTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_REGISTER, GncPluginRegisterClass))
36 #define GNC_IS_PLUGIN_REGISTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_REGISTER))
37 #define GNC_IS_PLUGIN_REGISTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_REGISTER))
38 #define GNC_PLUGIN_REGISTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_REGISTER, GncPluginRegisterClass))
39 
40 #define GNC_PLUGIN_REGISTER_NAME "gnc-plugin-register"
41 
42 /* typedefs & structures */
43 typedef struct
44 {
45  GncPlugin gnc_plugin;
47 
48 typedef struct
49 {
50  GncPluginClass gnc_plugin;
52 
53 /* function prototypes */
54 GType gnc_plugin_register_get_type (void);
55 
56 GncPlugin *gnc_plugin_register_new (void);
57 
58 G_END_DECLS
59 
60 #endif /* __GNC_PLUGIN_REGISTER_H */
The class data structure for a menu-only plugin.
Definition: gnc-plugin.h:107
The instance data structure for a menu-only plugin.
Definition: gnc-plugin.h:100
Functions for adding plugins to a GnuCash window.