Functions
GHookFinalizeFunc ()
void
(*GHookFinalizeFunc) (GHookList *hook_list,
GHook *hook);
Defines the type of function to be called when a hook in a
list of hooks gets finalized.
g_hook_list_clear ()
void
g_hook_list_clear (GHookList *hook_list);
Removes all the GHook elements from a GHookList.
g_hook_alloc ()
GHook *
g_hook_alloc (GHookList *hook_list);
Allocates space for a GHook and initializes it.
g_hook_append()
#define g_hook_append( hook_list, hook )
Appends a GHook onto the end of a GHookList.
GHookCompareFunc ()
gint
(*GHookCompareFunc) (GHook *new_hook,
GHook *sibling);
Defines the type of function used to compare GHook elements in
g_hook_insert_sorted().
Returns
a value <= 0 if new_hook
should be before sibling
g_hook_compare_ids ()
gint
g_hook_compare_ids (GHook *new_hook,
GHook *sibling);
Compares the ids of two GHook elements, returning a negative value
if the second id is greater than the first.
Returns
a value <= 0 if the id of sibling
is >= the id of new_hook
g_hook_get ()
GHook *
g_hook_get (GHookList *hook_list,
gulong hook_id);
Returns the GHook with the given id, or NULL if it is not found.
Returns
the GHook with the given id, or NULL if it is not found
G_HOOK_FLAGS()
#define G_HOOK_FLAGS(hook) (G_HOOK (hook)->flags)
Gets the flags of a hook.
G_HOOK()
#define G_HOOK(hook) ((GHook*) (hook))
Casts a pointer to a GHook*.
G_HOOK_IS_VALID()
#define G_HOOK_IS_VALID(hook)
Returns TRUE if the GHook is valid, i.e. it is in a GHookList,
it is active and it has not been destroyed.
G_HOOK_ACTIVE()
#define G_HOOK_ACTIVE(hook)
Returns TRUE if the GHook is active, which is normally the case
until the GHook is destroyed.
G_HOOK_IN_CALL()
#define G_HOOK_IN_CALL(hook)
Returns TRUE if the GHook function is currently executing.
Returns
TRUE if the GHook function is currently executing
G_HOOK_IS_UNLINKED()
#define G_HOOK_IS_UNLINKED(hook)
Returns TRUE if the GHook is not in a GHookList.
g_hook_ref ()
GHook *
g_hook_ref (GHookList *hook_list,
GHook *hook);
Increments the reference count for a GHook.
Returns
the hook
that was passed in (since 2.6)
g_hook_free ()
void
g_hook_free (GHookList *hook_list,
GHook *hook);
Calls the GHookList finalize_hook
function if it exists,
and frees the memory allocated for the GHook.