Function
GLibHookfind
Declaration [src]
GHook*
g_hook_find (
GHookList* hook_list,
gboolean need_valids,
GHookFindFunc func,
gpointer data
)
Description [src]
Finds a GHook in a GHookList using the given function to
test for a match.
This function is not directly available to language bindings.
Parameters
hook_list-
Type:
GHookListA
GHookList.The data is owned by the caller of the function. need_valids-
Type:
gbooleanTRUEifGHookelements which have been destroyed should be skipped. func-
Type:
GHookFindFuncThe function to call for each
GHook, which should returnTRUEwhen theGHookhas been found. data-
Type:
gpointerThe data to pass to
func.The argument can be NULL.The data is owned by the caller of the function.
Return value
Type: GHook
The found GHook or NULL if no matching GHook is found.
| The data is owned by the called function. |