hook

hook

Synopsis




void                (*HookFunction)                     (gpointer hook_data,
                                                         gpointer user_data);
                    HookItem;
                    Hook;
void                hook_register                       (const gchar *name);
gint                hook_associate                      (const gchar *name,
                                                         HookFunction func,
                                                         gpointer user_data);
gint                hook_dissociate                     (const gchar *name,
                                                         HookFunction func);
void                hook_call                           (const gchar *name,
                                                         gpointer hook_data);

Description

Details

HookFunction ()

void                (*HookFunction)                     (gpointer hook_data,
                                                         gpointer user_data);

hook_data :
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);

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

name :
func :
Returns :

hook_call ()

void                hook_call                           (const gchar *name,
                                                         gpointer hook_data);

name :
hook_data :