/* Initializes a #GHookList. This must be called before the #GHookList is used.  */
void g_hook_list_init(GHookList *hook_list, guint hook_size)
/* Initializes a #GHookList. This must be called before the #GHookList is used.  */
void g_hook_list_init(GHookList *hook_list, guint hook_size)
{
  g_return_if_fail (hook_list != NULL);
  g_return_if_fail (hook_size >= sizeof (GHook));
  hook_list->seq_id = 1;
  hook_list->hook_size = hook_size;
  hook_list->is_setup = TRUE;
  hook_list->hooks = NULL;
  hook_list->dummy3 = NULL;
  hook_list->finalize_hook = default_finalize_hook;
  hook_list->dummy[0] = NULL;
  hook_list->dummy[1] = NULL;
}