Function

GLibHookfind_func

Declaration

GHook*
g_hook_find_func (
  GHookList* hook_list,
  gboolean need_valids,
  gpointer func
)

Description

Finds a GHook in a GHookList with the given function.

Parameters

hook_list GHookList
 

A GHookList.

 The data is owned by the caller of the function.
need_valids gboolean
 

TRUE if GHook elements which have been destroyed should be skipped.

func gpointer
 

The function to find.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: GHook
 

The GHook with the given func or NULL if no matching GHook is found.

 The data is owned by the called function.