### Method

# GLib HookList marshal_check

#### Declaration

    void
    g_hook_list_marshal_check (
      GHookList* hook_list,
      gboolean may_recurse,
      GHookCheckMarshaller marshaller,
      gpointer marshal_data
    )

#### Description

Calls a function on each valid `GHook` and destroys it if the function returns `FALSE`.

#### Parameters

`may_recurse`

  Type: `gboolean`

  `TRUE` if hooks which are currently running (e.g. in another thread) are considered valid. If set to `FALSE`, these are skipped.

`marshaller`

  Type: `GHookCheckMarshaller`

  The function to call for each `GHook`.

`marshal_data`

  Type: `gpointer`

  Data to pass to `marshaller`.

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