Debian Codegraph @

peas-demo/plugins/helloworld/peasdemo-hello-world-plugin.h

raw
1 /*
2 * peasdemo-hello-world-plugin.h
3 * This file is part of libpeas
4 *
5 * Copyright (C) 2009-2010 Steve Frécinaux
6 *
7 * libpeas is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * libpeas 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 GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 */
21
22 #ifndef __PEASDEMO_HELLO_WORLD_PLUGIN_H__
23 #define __PEASDEMO_HELLO_WORLD_PLUGIN_H__
24
25 #include <gtk/gtk.h>
26 #include <libpeas/peas.h>
27
28 G_BEGIN_DECLS
29
30 #define PEASDEMO_TYPE_HELLO_WORLD_PLUGIN (peasdemo_hello_world_plugin_get_type ())
31 #define PEASDEMO_HELLO_WORLD_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PEASDEMO_TYPE_HELLO_WORLD_PLUGIN, PeasDemoHelloWorldPlugin))
32 #define PEASDEMO_HELLO_WORLD_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), PEASDEMO_TYPE_HELLO_WORLD_PLUGIN, PeasDemoHelloWorldPlugin))
33 #define PEASDEMO_IS_HELLO_WORLD_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PEASDEMO_TYPE_HELLO_WORLD_PLUGIN))
34 #define PEASDEMO_IS_HELLO_WORLD_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PEASDEMO_TYPE_HELLO_WORLD_PLUGIN))
35 #define PEASDEMO_HELLO_WORLD_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PEASDEMO_TYPE_HELLO_WORLD_PLUGIN, PeasDemoHelloWorldPluginClass))
36
37 typedef struct _PeasDemoHelloWorldPlugin PeasDemoHelloWorldPlugin;
38 typedef struct _PeasDemoHelloWorldPluginClass PeasDemoHelloWorldPluginClass;
39
40 struct _PeasDemoHelloWorldPlugin {
41 PeasExtensionBase parent_instance;
42
43 GtkWidget *window;
44 GtkWidget *label;
45 };
46
47 struct _PeasDemoHelloWorldPluginClass {
48 PeasExtensionBaseClass parent_class;
49 };
50
51 GType peasdemo_hello_world_plugin_get_type (void) G_GNUC_CONST;
52 G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
53
54 G_END_DECLS
55
56 #endif /* __PEASDEMO_HELLO_WORLD_PLUGIN_H__ */