GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-plugin-register2.h
1 /*
2  * gnc-plugin-register2.h --
3  *
4  * Copyright (C) 2003 Jan Arne Petersen
5  * Author: Jan Arne Petersen <[email protected]>
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 [email protected]
23  */
24 
25 #ifndef __GNC_PLUGIN_REGISTER2_H
26 #define __GNC_PLUGIN_REGISTER2_H
27 
28 #include "gnc-plugin.h"
29 
30 G_BEGIN_DECLS
31 
32 /* type macros */
33 #define GNC_TYPE_PLUGIN_REGISTER2 (gnc_plugin_register2_get_type ())
34 #define GNC_PLUGIN_REGISTER2(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_REGISTER2, GncPluginRegister2))
35 #define GNC_PLUGIN_REGISTER2_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_REGISTER2, GncPluginRegister2Class))
36 #define GNC_IS_PLUGIN_REGISTER2(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_REGISTER2))
37 #define GNC_IS_PLUGIN_REGISTER2_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_REGISTER2))
38 #define GNC_PLUGIN_REGISTER2_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_REGISTER2, GncPluginRegister2Class))
39 
40 #define GNC_PLUGIN_REGISTER2_NAME "gnc-plugin-register2"
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_register2_get_type (void);
55 
56 GncPlugin *gnc_plugin_register2_new (void);
57 
58 G_END_DECLS
59 
60 #endif /* __GNC_PLUGIN_REGISTER2_H */
Functions for adding plugins to a GnuCash window.