GLib.Hook¶
record (struct)
The Hook struct represents a single hook function in a HookList.
Methods¶
compare_ids¶
Compares the ids of two Hook elements, returning a negative value
if the second id is greater than the first.
Parameters:
sibling— aHookto compare withnew_hook
Static functions¶
destroy¶
Destroys a Hook, given its ID.
Parameters:
hook_list— aHookListhook_id— a hook ID
destroy_link¶
Removes one Hook from a HookList, marking it
inactive and calling Hook.unref on it.
Parameters:
free¶
Calls the HookList finalize_hook function if it exists,
and frees the memory allocated for the Hook.
Parameters:
insert_before¶
Inserts a Hook into a HookList, before a given Hook.
Parameters:
insert_sorted¶
Inserts a Hook into a HookList, sorted by the given function.
Parameters:
hook_list— aHookListhook— theHookto insertfunc— the comparison function used to sort theHookelements
prepend¶
Prepends a Hook on the start of a HookList.
Parameters:
unref¶
Decrements the reference count of a Hook.
If the reference count falls to 0, the Hook is removed
from the HookList and Hook.free is called to free it.
Parameters: