#include <gobject.h>
void (*GClosureMarshal) (GClosure *closure,
GValue *return_value,
guint n_param_values,
const GValue *param_values,
gpointer invocation_hint,
gpointer marshal_data);
void (*GClosureNotify) (gpointer data,
GClosure *closure);
struct GClosure;
struct GCClosure;
struct GClosureNotifyData;
typedef GCallback;
#define G_CLOSURE_NEEDS_MARSHAL (closure)
#define G_CCLOSURE_SWAP_DATA (cclosure)
GClosure* g_cclosure_new (GCallback callback_func,
gpointer user_data,
GClosureNotify destroy_data);
GClosure* g_cclosure_new_swap (GCallback callback_func,
gpointer user_data,
GClosureNotify destroy_data);
GClosure* g_cclosure_new_object (GCallback callback_func,
gpointer object);
GClosure* g_cclosure_new_object_swap (GCallback callback_func,
gpointer object);
GClosure* g_closure_ref (GClosure *closure);
void g_closure_unref (GClosure *closure);
void g_closure_invoke (GClosure *closure,
GValue *return_value,
guint n_param_values,
const GValue *param_values,
gpointer invocation_hint);
void g_closure_invalidate (GClosure *closure);
void g_closure_add_fnotify (GClosure *closure,
gpointer notify_data,
GClosureNotify notify_func);
void g_closure_remove_fnotify (GClosure *closure,
gpointer notify_data,
GClosureNotify notify_func);
void g_closure_add_inotify (GClosure *closure,
gpointer notify_data,
GClosureNotify notify_func);
void g_closure_remove_inotify (GClosure *closure,
gpointer notify_data,
GClosureNotify notify_func);
GClosure* g_closure_new_simple (guint sizeof_closure,
gpointer data);
void g_closure_set_marshal (GClosure *closure,
GClosureMarshal marshal);
void g_closure_add_marshal_guards (GClosure *closure,
gpointer pre_marshal_data,
GClosureNotify pre_marshal_notify,
gpointer post_marshal_data,
GClosureNotify post_marshal_notify);
void g_closure_set_meta_marshal (GClosure *closure,
gpointer marshal_data,
GClosureMarshal meta_marshal); |