ghook.h File Reference

API published in:
API deprecated in:


#include <_ansi.h>
#include <glib/gmem.h>

Go to the source code of this file.


Data Structures

struct   _GHookList
struct   _GHook

Defines

#define  G_HOOK_FLAG_USER_SHIFT   (4)
#define  G_HOOK(hook)   ((GHook*) (hook))
#define  G_HOOK_FLAGS(hook)   (G_HOOK (hook)->flags)
#define  G_HOOK_ACTIVE(hook)
#define  G_HOOK_IN_CALL(hook)
#define  G_HOOK_IS_VALID(hook)
#define  G_HOOK_IS_UNLINKED(hook)
#define  g_hook_append(hook_list, hook)   g_hook_insert_before ((hook_list), NULL, (hook))

Typedefs

typedef typedefG_BEGIN_DECLS
struct _GHook 
GHook
typedef _GHookList  GHookList
typedef gint(*  GHookCompareFunc )(GHook *new_hook, GHook *sibling)
typedef gboolean(*  GHookFindFunc )(GHook *hook, gpointer data)
typedef void(*  GHookMarshaller )(GHook *hook, gpointer marshal_data)
typedef gboolean(*  GHookCheckMarshaller )(GHook *hook, gpointer marshal_data)
typedef void(*  GHookFunc )(gpointer data)
typedef gboolean(*  GHookCheckFunc )(gpointer data)
typedef void(*  GHookFinalizeFunc )(GHookList *hook_list, GHook *hook)

Enumerations

enum   GHookFlagMask { G_HOOK_FLAG_ACTIVE = 1 << 0, G_HOOK_FLAG_IN_CALL = 1 << 1, G_HOOK_FLAG_MASK = 0x0f }

Functions

IMPORT_C void  g_hook_list_init (GHookList *hook_list, guint hook_size)
IMPORT_C void  g_hook_list_clear (GHookList *hook_list)
IMPORT_C GHook g_hook_alloc (GHookList *hook_list)
IMPORT_C void  g_hook_free (GHookList *hook_list, GHook *hook)
IMPORT_C GHook g_hook_ref (GHookList *hook_list, GHook *hook)
IMPORT_C void  g_hook_unref (GHookList *hook_list, GHook *hook)
IMPORT_C gboolean  g_hook_destroy (GHookList *hook_list, gulong hook_id)
IMPORT_C void  g_hook_destroy_link (GHookList *hook_list, GHook *hook)
IMPORT_C void  g_hook_prepend (GHookList *hook_list, GHook *hook)
IMPORT_C void  g_hook_insert_before (GHookList *hook_list, GHook *sibling, GHook *hook)
IMPORT_C void  g_hook_insert_sorted (GHookList *hook_list, GHook *hook, GHookCompareFunc func)
IMPORT_C GHook g_hook_get (GHookList *hook_list, gulong hook_id)
IMPORT_C GHook g_hook_find (GHookList *hook_list, gboolean need_valids, GHookFindFunc func, gpointer data)
IMPORT_C GHook g_hook_find_data (GHookList *hook_list, gboolean need_valids, gpointer data)
IMPORT_C GHook g_hook_find_func (GHookList *hook_list, gboolean need_valids, gpointer func)
IMPORT_C GHook g_hook_find_func_data (GHookList *hook_list, gboolean need_valids, gpointer func, gpointer data)
IMPORT_C GHook g_hook_first_valid (GHookList *hook_list, gboolean may_be_in_call)
IMPORT_C GHook g_hook_next_valid (GHookList *hook_list, GHook *hook, gboolean may_be_in_call)
IMPORT_C gint  g_hook_compare_ids (GHook *new_hook, GHook *sibling)
IMPORT_C void  g_hook_list_invoke (GHookList *hook_list, gboolean may_recurse)
IMPORT_C void  g_hook_list_invoke_check (GHookList *hook_list, gboolean may_recurse)
IMPORT_C void  g_hook_list_marshal (GHookList *hook_list, gboolean may_recurse, GHookMarshaller marshaller, gpointer marshal_data)
IMPORT_C void  g_hook_list_marshal_check (GHookList *hook_list, gboolean may_recurse, GHookCheckMarshaller marshaller, gpointer marshal_data)

Define Documentation

#define G_HOOK hook   )     ((GHook*) (hook))
 
#define G_HOOK_ACTIVE hook   ) 
 

Value:

((G_HOOK_FLAGS (hook) & \
                                          G_HOOK_FLAG_ACTIVE) != 0)
#define g_hook_append hook_list,
hook   )     g_hook_insert_before ((hook_list), NULL, (hook))
 
#define G_HOOK_FLAG_USER_SHIFT   (4)
 
#define G_HOOK_FLAGS hook   )     (G_HOOK (hook)->flags)
 
#define G_HOOK_IN_CALL hook   ) 
 

Value:

((G_HOOK_FLAGS (hook) & \
                                          G_HOOK_FLAG_IN_CALL) != 0)
#define G_HOOK_IS_UNLINKED hook   ) 
 

Value:

(G_HOOK (hook)->next == NULL && \
                                         G_HOOK (hook)->prev == NULL && \
                                         G_HOOK (hook)->hook_id == 0 && \
                                         G_HOOK (hook)->ref_count == 0)
#define G_HOOK_IS_VALID hook   ) 
 

Value:

(G_HOOK (hook)->hook_id != 0 && \
                                         (G_HOOK_FLAGS (hook) & \
                                          G_HOOK_FLAG_ACTIVE))

Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _GHook GHook
 
typedef gboolean(* GHookCheckFunc)(gpointer data)
 
typedef gboolean(* GHookCheckMarshaller)(GHook *hook, gpointer marshal_data)
 
typedef gint(* GHookCompareFunc)(GHook *new_hook, GHook *sibling)
 
typedef void(* GHookFinalizeFunc)(GHookList *hook_list, GHook *hook)
 
typedef gboolean(* GHookFindFunc)(GHook *hook, gpointer data)
 
typedef void(* GHookFunc)(gpointer data)
 
typedef struct _GHookList GHookList
 
typedef void(* GHookMarshaller)(GHook *hook, gpointer marshal_data)
 

Enumeration Type Documentation

enum GHookFlagMask
 
Enumerator:
G_HOOK_FLAG_ACTIVE 
G_HOOK_FLAG_IN_CALL 
G_HOOK_FLAG_MASK 

Function Documentation

IMPORT_C GHook* g_hook_alloc GHookList hook_list  ) 
 
IMPORT_C gint g_hook_compare_ids GHook new_hook,
GHook sibling
 
IMPORT_C gboolean g_hook_destroy GHookList hook_list,
gulong  hook_id
 
IMPORT_C void g_hook_destroy_link GHookList hook_list,
GHook hook
 
IMPORT_C GHook* g_hook_find GHookList hook_list,
gboolean  need_valids,
GHookFindFunc  func,
gpointer  data
 
IMPORT_C GHook* g_hook_find_data GHookList hook_list,
gboolean  need_valids,
gpointer  data
 
IMPORT_C GHook* g_hook_find_func GHookList hook_list,
gboolean  need_valids,
gpointer  func
 
IMPORT_C GHook* g_hook_find_func_data GHookList hook_list,
gboolean  need_valids,
gpointer  func,
gpointer  data
 
IMPORT_C GHook* g_hook_first_valid GHookList hook_list,
gboolean  may_be_in_call
 
IMPORT_C void g_hook_free GHookList hook_list,
GHook hook
 
IMPORT_C GHook* g_hook_get GHookList hook_list,
gulong  hook_id
 
IMPORT_C void g_hook_insert_before GHookList hook_list,
GHook sibling,
GHook hook
 
IMPORT_C void g_hook_insert_sorted GHookList hook_list,
GHook hook,
GHookCompareFunc  func
 
IMPORT_C void g_hook_list_clear GHookList hook_list  ) 
 
IMPORT_C void g_hook_list_init GHookList hook_list,
guint  hook_size
 
IMPORT_C void g_hook_list_invoke GHookList hook_list,
gboolean  may_recurse
 
IMPORT_C void g_hook_list_invoke_check GHookList hook_list,
gboolean  may_recurse
 
IMPORT_C void g_hook_list_marshal GHookList hook_list,
gboolean  may_recurse,
GHookMarshaller  marshaller,
gpointer  marshal_data
 
IMPORT_C void g_hook_list_marshal_check GHookList hook_list,
gboolean  may_recurse,
GHookCheckMarshaller  marshaller,
gpointer  marshal_data
 
IMPORT_C GHook* g_hook_next_valid GHookList hook_list,
GHook hook,
gboolean  may_be_in_call
 
IMPORT_C void g_hook_prepend GHookList hook_list,
GHook hook
 
IMPORT_C GHook* g_hook_ref GHookList hook_list,
GHook hook
 
IMPORT_C void g_hook_unref GHookList hook_list,
GHook hook
 

Copyright © Nokia Corporation 2001-2008
Back to top