gclosure.h File Reference

API published in:
API deprecated in:


#include <_ansi.h>
#include <gobject/gtype.h>

Go to the source code of this file.


Data Structures

struct   _GClosureNotifyData
struct   _GClosure
struct   _GCClosure

Defines

#define  G_CLOSURE_NEEDS_MARSHAL(closure)   (((GClosure*) (closure))->marshal == NULL)
#define  G_CLOSURE_N_NOTIFIERS(cl)
#define  G_CCLOSURE_SWAP_DATA(cclosure)   (((GClosure*) (closure))->derivative_flag)
#define  G_CALLBACK(f)   ((GCallback) (f))

Typedefs

typedef _GClosure  GClosure
typedef _GClosureNotifyData  GClosureNotifyData
typedef void(*  GCallback )(void)
typedef void(*  GClosureNotify )(gpointer data, GClosure *closure)
typedef void(*  GClosureMarshal )(GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data)
typedef _GCClosure  GCClosure

Functions

IMPORT_C GClosure g_cclosure_new (GCallback callback_func, gpointer user_data, GClosureNotify destroy_data)
IMPORT_C GClosure g_cclosure_new_swap (GCallback callback_func, gpointer user_data, GClosureNotify destroy_data)
IMPORT_C GClosure g_signal_type_cclosure_new (GType itype, guint struct_offset)
IMPORT_C GClosure g_closure_ref (GClosure *closure)
IMPORT_C void  g_closure_sink (GClosure *closure)
IMPORT_C void  g_closure_unref (GClosure *closure)
IMPORT_C GClosure g_closure_new_simple (guint sizeof_closure, gpointer data)
IMPORT_C void  g_closure_add_finalize_notifier (GClosure *closure, gpointer notify_data, GClosureNotify notify_func)
IMPORT_C void  g_closure_remove_finalize_notifier (GClosure *closure, gpointer notify_data, GClosureNotify notify_func)
IMPORT_C void  g_closure_add_invalidate_notifier (GClosure *closure, gpointer notify_data, GClosureNotify notify_func)
IMPORT_C void  g_closure_remove_invalidate_notifier (GClosure *closure, gpointer notify_data, GClosureNotify notify_func)
IMPORT_C void  g_closure_add_marshal_guards (GClosure *closure, gpointer pre_marshal_data, GClosureNotify pre_marshal_notify, gpointer post_marshal_data, GClosureNotify post_marshal_notify)
IMPORT_C void  g_closure_set_marshal (GClosure *closure, GClosureMarshal marshal)
IMPORT_C void  g_closure_set_meta_marshal (GClosure *closure, gpointer marshal_data, GClosureMarshal meta_marshal)
IMPORT_C void  g_closure_invalidate (GClosure *closure)
IMPORT_C void  g_closure_invoke (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint)

Define Documentation

#define G_CALLBACK  )     ((GCallback) (f))
 
#define G_CCLOSURE_SWAP_DATA cclosure   )     (((GClosure*) (closure))->derivative_flag)
 
#define G_CLOSURE_N_NOTIFIERS cl   ) 
 

Value:

((cl)->meta_marshal + ((cl)->n_guards << 1L) + \
                                          (cl)->n_fnotifiers + (cl)->n_inotifiers)
#define G_CLOSURE_NEEDS_MARSHAL closure   )     (((GClosure*) (closure))->marshal == NULL)
 

Typedef Documentation

typedef void(* GCallback)(void)
 
typedef struct _GCClosure GCClosure
 
typedef struct _GClosure GClosure
 
typedef void(* GClosureMarshal)(GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data)
 
typedef void(* GClosureNotify)(gpointer data, GClosure *closure)
 
typedef struct _GClosureNotifyData GClosureNotifyData
 

Function Documentation

IMPORT_C GClosure* g_cclosure_new GCallback  callback_func,
gpointer  user_data,
GClosureNotify  destroy_data
 
IMPORT_C GClosure* g_cclosure_new_swap GCallback  callback_func,
gpointer  user_data,
GClosureNotify  destroy_data
 
IMPORT_C void g_closure_add_finalize_notifier GClosure closure,
gpointer  notify_data,
GClosureNotify  notify_func
 
IMPORT_C void g_closure_add_invalidate_notifier GClosure closure,
gpointer  notify_data,
GClosureNotify  notify_func
 
IMPORT_C void g_closure_add_marshal_guards GClosure closure,
gpointer  pre_marshal_data,
GClosureNotify  pre_marshal_notify,
gpointer  post_marshal_data,
GClosureNotify  post_marshal_notify
 
IMPORT_C void g_closure_invalidate GClosure closure  ) 
 
IMPORT_C void g_closure_invoke GClosure closure,
GValue return_value,
guint  n_param_values,
const GValue param_values,
gpointer  invocation_hint
 
IMPORT_C GClosure* g_closure_new_simple guint  sizeof_closure,
gpointer  data
 
IMPORT_C GClosure* g_closure_ref GClosure closure  ) 
 
IMPORT_C void g_closure_remove_finalize_notifier GClosure closure,
gpointer  notify_data,
GClosureNotify  notify_func
 
IMPORT_C void g_closure_remove_invalidate_notifier GClosure closure,
gpointer  notify_data,
GClosureNotify  notify_func
 
IMPORT_C void g_closure_set_marshal GClosure closure,
GClosureMarshal  marshal
 
IMPORT_C void g_closure_set_meta_marshal GClosure closure,
gpointer  marshal_data,
GClosureMarshal  meta_marshal
 
IMPORT_C void g_closure_sink GClosure closure  ) 
 
IMPORT_C void g_closure_unref GClosure closure  ) 
 
IMPORT_C GClosure* g_signal_type_cclosure_new GType  itype,
guint  struct_offset
 

Copyright © Nokia Corporation 2001-2008
Back to top