Details
HookFunction ()
void (*HookFunction) (gpointer hook_data,
gpointer user_data);
HookItem
typedef struct {
HookFunction func;
gpointer user_data;
} HookItem;
Hook
typedef struct {
const gchar *name;
GSList *items;
} Hook;
hook_register ()
void hook_register (const gchar *name);
hook_associate ()
gint hook_associate (const gchar *name,
HookFunction func,
gpointer user_data);
name : |
|
func : |
|
user_data : |
|
Returns : |
|
hook_dissociate ()
gint hook_dissociate (const gchar *name,
HookFunction func);
hook_call ()
void hook_call (const gchar *name,
gpointer hook_data);