/* Returns: the @hook that was passed in (since 2.6)  */
GHook* g_hook_ref(GHookList *hook_list, GHook *hook)
/* Returns: the @hook that was passed in (since 2.6)  */
GHook* g_hook_ref(GHookList *hook_list, GHook *hook)
{
  g_return_val_if_fail (hook_list != NULL, NULL);
  g_return_val_if_fail (hook != NULL, NULL);
  g_return_val_if_fail (hook->ref_count > 0, NULL);
  hook->ref_count++;
  return hook;
}