2 * vim:ts=4:sw=4:et:cindent:cino=(0
5 #ifndef __MAEMO_TWEAKS_MODULE_H__
6 #define __MAEMO_TWEAKS_MODULE_H__
8 #include <glib-object.h>
13 #define MAEMO_TWEAKS_TYPE_MODULE \
14 (maemo_tweaks_module_get_type ())
15 #define MAEMO_TWEAKS_MODULE(o) \
16 (G_TYPE_CHECK_INSTANCE_CAST ((o), MAEMO_TWEAKS_TYPE_MODULE, \
18 #define MAEMO_TWEAKS_MODULE_CLASS(k) \
19 (G_TYPE_CHECK_CLASS_CAST((k), MAEMO_TWEAKS_TYPE_MODULE, \
20 MaemoTweaksModuleClass))
21 #define MAEMO_TWEAKS_IS_MODULE(o) \
22 (G_TYPE_CHECK_INSTANCE_TYPE ((o), MAEMO_TWEAKS_TYPE_MODULE))
23 #define MAEMO_TWEAKS_IS_MODULE_CLASS(k) \
24 (G_TYPE_CHECK_CLASS_TYPE ((k), MAEMO_TWEAKS_TYPE_MODULE))
25 #define MAEMO_TWEAKS_MODULE_GET_CLASS(o) \
26 (G_TYPE_INSTANCE_GET_CLASS ((o), MAEMO_TWEAKS_TYPE_MODULE, \
27 MaemoTweaksModuleClass))
29 typedef struct _MaemoTweaksModule MaemoTweaksModule;
30 typedef struct _MaemoTweaksModuleClass MaemoTweaksModuleClass;
32 struct _MaemoTweaksModule
34 GTypeModule parent_instance;
40 void (* load) (MaemoTweaksModule *module);
41 void (* unload) (MaemoTweaksModule *module);
44 struct _MaemoTweaksModuleClass
46 GTypeModuleClass parent_class;
49 GType maemo_tweaks_module_get_type (void) G_GNUC_CONST;
51 MaemoTweaksModule * maemo_tweaks_module_new (const gchar *filename);
54 /* API for the modules to implement */
56 void maemo_tweaks_module_load (MaemoTweaksModule *module);
57 void maemo_tweaks_module_unload (MaemoTweaksModule *module);
62 #endif /* __MAEMO_TWEAKS_MODULE_H_ */