/* Returns: a value <= 0 if the id of @sibling is >= the id of @new_hook  */
gint g_hook_compare_ids(GHook *new_hook, GHook *sibling)
/* Returns: a value <= 0 if the id of @sibling is >= the id of @new_hook  */
gint g_hook_compare_ids(GHook *new_hook, GHook *sibling)
{
  if (new_hook->hook_id < sibling->hook_id)
    return -1;
  else if (new_hook->hook_id > sibling->hook_id)
    return 1;
  return 0;
}