5.5 GClosureMarshal

Callback: GClosureMarshal

A procedure given for it is called as (procedure closure return-value param-values invocation-hint). If the function that it is given to has no user data for it, it is also passed marshal-data, last.

The type used for marshaller functions.

closure

Passed: a <GClosure>.

the <GClosure> to which the marshaller belongs

return-value

Passed: a <GValue>, or #f.

a <GValue> to store the return value. May be #f if the callback of closure doesn’t return a value.

param-values

Passed: a vector, each a <GValue>.

an array of GValues holding the arguments on which to invoke the callback of closure

invocation-hint

Passed: a foreign pointer, or #f.

the invocation hint given as the last argument to closure:invoke!

n-param-values

Not passed: guile-gi gives the length of param-values.

the length of the param-values array

marshal-data

Not passed: it is the user data that guile-gi supplied.

additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()