mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
publically define GSignalInvocationHint structure that gets passed in to
Fri Oct 27 16:33:41 2000 Tim Janik <timj@gtk.org> * gsignal.[hc]: publically define GSignalInvocationHint structure that gets passed in to closure invocations. added signal details. renamed GSignalType to GSignalFlags to comply with conventions. quite some cleanups and minor fixes. avoid uneccessary handler list walks upon invokation of after handlers. relookup handler list for restarted emissions. preliminary abort normal handler invokation if after handler is encountered. * glib-genmarshal.c: * gclosure.[hc]: moved invocation_hint to the end of the g_closure_invoke() arguments as sugegsted by kenelson. also made it a gpointer to be more generic. the invocation_hint is a caller specific thing that can be used to pass additional data in to closure invocations as documented with the caller invoking the closure.
This commit is contained in:
@@ -41,10 +41,10 @@ typedef gpointer GCallback;
|
||||
typedef void (*GClosureNotify) (gpointer data,
|
||||
GClosure *closure);
|
||||
typedef void (*GClosureMarshal) (GClosure *closure,
|
||||
guint invocation_hint,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
typedef struct _GCClosure GCClosure;
|
||||
|
||||
@@ -69,10 +69,10 @@ struct _GClosure
|
||||
/*< public >*/ guint is_invalid : 1;
|
||||
|
||||
/*< private >*/ void (*marshal) (GClosure *closure,
|
||||
guint invocation_hint,
|
||||
GValue /*out*/ *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
/*< protected >*/ gpointer data;
|
||||
|
||||
@@ -139,10 +139,10 @@ void g_closure_set_meta_marshal (GClosure *closure,
|
||||
GClosureMarshal meta_marshal);
|
||||
void g_closure_invalidate (GClosure *closure);
|
||||
void g_closure_invoke (GClosure *closure,
|
||||
guint invocation_hint,
|
||||
GValue /*out*/ *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values);
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint);
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user