Method
GObjectClosureadd_marshal_guards
Declaration [src]
void
g_closure_add_marshal_guards (
GClosure* closure,
gpointer pre_marshal_data,
GClosureNotify pre_marshal_notify,
gpointer post_marshal_data,
GClosureNotify post_marshal_notify
)
Description [src]
Adds a pair of notifiers which get invoked before and after the closure callback, respectively.
This is typically used to protect the extra arguments for the
duration of the callback. See g_object_watch_closure() for an
example of marshal guards.
This method is not directly available to language bindings.
Parameters
pre_marshal_data-
Type:
gpointerData to pass to
pre_marshal_notify.The argument can be NULL.The data is owned by the caller of the method. pre_marshal_notify-
Type:
GClosureNotifyA function to call before the closure callback.
post_marshal_data-
Type:
gpointerData to pass to
post_marshal_notify.The argument can be NULL.The data is owned by the caller of the method. post_marshal_notify-
Type:
GClosureNotifyA function to call after the closure callback.