Software: Apache/2.0.54 (Fedora). PHP/5.0.4 uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/share/gtk-doc/html/glib/ drwxr-xr-x |
Viewing file: Select action/file-type:
Synopsis#include <glib.h> GHookList; void (*GHookFinalizeFunc) (GHookList *hook_list, GHook *hook); GHook; void (*GHookFunc) (gpointer data); gboolean (*GHookCheckFunc) (gpointer data); void g_hook_list_init (GHookList *hook_list, guint hook_size); void g_hook_list_invoke (GHookList *hook_list, gboolean may_recurse); void g_hook_list_invoke_check (GHookList *hook_list, gboolean may_recurse); void g_hook_list_marshal (GHookList *hook_list, gboolean may_recurse, GHookMarshaller marshaller, gpointer marshal_data); void (*GHookMarshaller) (GHook *hook, gpointer marshal_data); void g_hook_list_marshal_check (GHookList *hook_list, gboolean may_recurse, GHookCheckMarshaller marshaller, gpointer marshal_data); gboolean (*GHookCheckMarshaller) (GHook *hook, gpointer marshal_data); void g_hook_list_clear (GHookList *hook_list); GHook* g_hook_alloc (GHookList *hook_list); #define g_hook_append ( hook_list, hook ) void g_hook_prepend (GHookList *hook_list, GHook *hook); void g_hook_insert_before (GHookList *hook_list, GHook *sibling, GHook *hook); void g_hook_insert_sorted (GHookList *hook_list, GHook *hook, GHookCompareFunc func); gint (*GHookCompareFunc) (GHook *new_hook, GHook *sibling); gint g_hook_compare_ids (GHook *new_hook, GHook *sibling); GHook* g_hook_get (GHookList *hook_list, gulong hook_id); GHook* g_hook_find (GHookList *hook_list, gboolean need_valids, GHookFindFunc func, gpointer data); gboolean (*GHookFindFunc) (GHook *hook, gpointer data); GHook* g_hook_find_data (GHookList *hook_list, gboolean need_valids, gpointer data); GHook* g_hook_find_func (GHookList *hook_list, gboolean need_valids, gpointer func); GHook* g_hook_find_func_data (GHookList *hook_list, gboolean need_valids, gpointer func, gpointer data); GHook* g_hook_first_valid (GHookList *hook_list, gboolean may_be_in_call); GHook* g_hook_next_valid (GHookList *hook_list, GHook *hook, gboolean may_be_in_call); enum GHookFlagMask; #define G_HOOK_FLAGS (hook) #define G_HOOK_FLAG_USER_SHIFT #define G_HOOK (hook) #define G_HOOK_IS_VALID (hook) #define G_HOOK_ACTIVE (hook) #define G_HOOK_IN_CALL (hook) #define G_HOOK_IS_UNLINKED (hook) GHook* g_hook_ref (GHookList *hook_list, GHook *hook); void g_hook_unref (GHookList *hook_list, GHook *hook); void g_hook_free (GHookList *hook_list, GHook *hook); gboolean g_hook_destroy (GHookList *hook_list, gulong hook_id); void g_hook_destroy_link (GHookList *hook_list, GHook *hook); DescriptionThe GHookList, GHook and their related functions provide support for lists of hook functions. Functions can be added and removed from the lists, and the list of hook functions can be invoked. DetailsGHookListtypedef struct { gulong seq_id; guint hook_size : 16; guint is_setup : 1; GHook *hooks; GMemChunk *hook_memchunk; GHookFinalizeFunc finalize_hook; gpointer dummy[2]; } GHookList; The GHookList struct represents a list of hook functions.
GHookFinalizeFunc ()void (*GHookFinalizeFunc) (GHookList *hook_list, GHook *hook); Defines the type of function to be called when a hook in a list of hooks gets finalized.
GHooktypedef struct { gpointer data; GHook *next; GHook *prev; guint ref_count; gulong hook_id; guint flags; gpointer func; GDestroyNotify destroy; } GHook; The GHook struct represents a single hook function in a GHookList.
GHookFunc ()void (*GHookFunc) (gpointer data);
Defines the type of a hook function that can be invoked
by
GHookCheckFunc ()gboolean (*GHookCheckFunc) (gpointer data);
Defines the type of a hook function that can be invoked
by g_hook_list_init ()void g_hook_list_init (GHookList *hook_list, guint hook_size); Initializes a GHookList. This must be called before the GHookList is used. g_hook_list_invoke ()void g_hook_list_invoke (GHookList *hook_list, gboolean may_recurse); Calls all of the GHook functions in a GHookList.
g_hook_list_invoke_check ()void g_hook_list_invoke_check (GHookList *hook_list, gboolean may_recurse);
Calls all of the GHook functions in a GHookList.
Any function which returns
g_hook_list_marshal ()void g_hook_list_marshal (GHookList *hook_list, gboolean may_recurse, GHookMarshaller marshaller, gpointer marshal_data); Calls a function on each valid GHook. GHookMarshaller ()void (*GHookMarshaller) (GHook *hook, gpointer marshal_data);
Defines the type of function used by
g_hook_list_marshal_check ()void g_hook_list_marshal_check (GHookList *hook_list, gboolean may_recurse, GHookCheckMarshaller marshaller, gpointer marshal_data);
Calls a function on each valid GHook and destroys it if the
function returns GHookCheckMarshaller ()gboolean (*GHookCheckMarshaller) (GHook *hook, gpointer marshal_data);
Defines the type of function used by
g_hook_list_clear ()void g_hook_list_clear (GHookList *hook_list); Removes all the GHook elements from a GHookList.
g_hook_alloc ()GHook* g_hook_alloc (GHookList *hook_list); Allocates space for a GHook and initializes it. g_hook_insert_before ()void g_hook_insert_before (GHookList *hook_list, GHook *sibling, GHook *hook); g_hook_insert_sorted ()void g_hook_insert_sorted (GHookList *hook_list, GHook *hook, GHookCompareFunc func); Inserts a GHook into a GHookList, sorted by the given function. GHookCompareFunc ()gint (*GHookCompareFunc) (GHook *new_hook, GHook *sibling);
Defines the type of function used to compare GHook elements in
g_hook_compare_ids ()gint g_hook_compare_ids (GHook *new_hook, GHook *sibling); Compares the ids of two GHook elements, returning a negative value if the second id is greater than the first. g_hook_get ()GHook* g_hook_get (GHookList *hook_list, gulong hook_id);
Returns the GHook with the given id, or g_hook_find ()GHook* g_hook_find (GHookList *hook_list, gboolean need_valids, GHookFindFunc func, gpointer data); Finds a GHook in a GHookList using the given function to test for a match.
GHookFindFunc ()gboolean (*GHookFindFunc) (GHook *hook, gpointer data);
Defines the type of the function passed to
g_hook_find_data ()GHook* g_hook_find_data (GHookList *hook_list, gboolean need_valids, gpointer data); g_hook_find_func ()GHook* g_hook_find_func (GHookList *hook_list, gboolean need_valids, gpointer func); g_hook_find_func_data ()GHook* g_hook_find_func_data (GHookList *hook_list, gboolean need_valids, gpointer func, gpointer data); Finds a GHook in a GHookList with the given function and data. g_hook_first_valid ()GHook* g_hook_first_valid (GHookList *hook_list, gboolean may_be_in_call);
Returns the first GHook in a GHookList which has not been destroyed.
The reference count for the GHook is incremented, so you must call
g_hook_next_valid ()GHook* g_hook_next_valid (GHookList *hook_list, GHook *hook, gboolean may_be_in_call);
Returns the next GHook in a GHookList which has not been destroyed.
The reference count for the GHook is incremented, so you must call
enum GHookFlagMasktypedef enum { G_HOOK_FLAG_ACTIVE = 1 << 0, G_HOOK_FLAG_IN_CALL = 1 << 1, G_HOOK_FLAG_MASK = 0x0f } GHookFlagMask; Flags used internally in the GHook implementation.
G_HOOK_FLAGS()#define G_HOOK_FLAGS(hook) (G_HOOK (hook)->flags) Returns the flags of a hook.
G_HOOK_FLAG_USER_SHIFT#define G_HOOK_FLAG_USER_SHIFT (4)
The position of the first bit which is not reserved for internal
use be the GHook implementation, i.e.
G_HOOK_IS_VALID()#define G_HOOK_IS_VALID(hook)
Returns G_HOOK_ACTIVE()#define G_HOOK_ACTIVE(hook)
Returns G_HOOK_IN_CALL()#define G_HOOK_IN_CALL(hook)
Returns g_hook_ref ()GHook* g_hook_ref (GHookList *hook_list, GHook *hook); Increments the reference count for a GHook. g_hook_unref ()void g_hook_unref (GHookList *hook_list, GHook *hook);
Decrements the reference count of a GHook.
If the reference count falls to 0, the GHook is removed from the GHookList
and g_hook_free ()void g_hook_free (GHookList *hook_list, GHook *hook);
Calls the GHookList g_hook_destroy ()gboolean g_hook_destroy (GHookList *hook_list, gulong hook_id); Destroys a GHook, given its ID.
|
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0044 ]-- |