Plugin Definition Macros

Plugin Definition Macros

Synopsis


#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)

Description

Details

HD_DEFINE_PLUGIN_MODULE()

#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)

HD_DEFINE_PLUGIN_MODULE_EXTENDED()

#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.

HD_PLUGIN_MODULE_SYMBOLS()

#define             HD_PLUGIN_MODULE_SYMBOLS(t_n)

t_n :

HD_PLUGIN_MODULE_SYMBOLS_CODE()

#define             HD_PLUGIN_MODULE_SYMBOLS_CODE(t_n, CODE_LOAD, CODE_UNLOAD)

t_n :
CODE_LOAD :
CODE_UNLOAD :