Closure.addMarshalGuards

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.

Parameters

preMarshalData void*

data to pass to @pre_marshal_notify

preMarshalNotify GClosureNotify

a function to call before the closure callback

postMarshalData void*

data to pass to @post_marshal_notify

postMarshalNotify GClosureNotify

a function to call after the closure callback

Meta