Function

GLibHookfind

Declaration

GHook*
g_hook_find (
  GHookList* hook_list,
  gboolean need_valids,
  GHookFindFunc func,
  gpointer data
)

Description

Finds a GHook in a GHookList using the given function to test for a match.

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 GHookFindFunc
 

The function to call for each GHook, which should return TRUE when the GHook has been found.

data gpointer
 

The data to pass to func.

Return value

Returns: GHook
 

The found GHook or NULL if no matching GHook is found.

 The data is owned by the called function.