libhildondesktop Reference Manual | ||||
---|---|---|---|---|
#include <libhildondesktop/libhildondesktop.h> #define HD_DEFINE_PLUGIN_MODULE (TN, t_n, T_P) #define HD_DEFINE_PLUGIN_MODULE_EXTENDED (TN, t_n, T_P, CODE, CODE_LOAD, CODE_UNLOAD) #define HD_PLUGIN_MODULE_SYMBOLS (t_n) #define HD_PLUGIN_MODULE_SYMBOLS_CODE (t_n, CODE_LOAD, CODE_UNLOAD)
#define HD_DEFINE_PLUGIN_MODULE(TN, t_n, T_P)
Register an object supplied by a plugin in Hildon Desktop. FIXME: link to an example.
TN : |
The name of the object type, in Camel case. (ex: ObjectType) |
t_n : |
The name of the object type, in lowercase, with words separated by '_'. (ex: object_type) |
T_P : |
The GType of the parent (ex: STATUSBAR_TYPE_ITEM) |
#define HD_DEFINE_PLUGIN_MODULE_EXTENDED(TN, t_n, T_P, CODE, CODE_LOAD, CODE_UNLOAD)
Register an object supplied by a plugin in Hildon Desktop.
TN : |
The name of the object type, in Camel case. (ex: ObjectType) |
t_n : |
The name of the object type, in lowercase, with words separated by '_'. (ex: object_type) |
T_P : |
The GType of the parent (ex: STATUSBAR_TYPE_ITEM) |
CODE : |
Custom code that gets inserted in the *_register_type() function
|
CODE_LOAD : |
code executed when the plugin is loaded. |
CODE_UNLOAD : |
code executed when the plugin is unloaded. |