4.8 GDuplicateFunc

Callback: GDuplicateFunc

A procedure given for it is called as (procedure data) ⇒ %return.

The type of functions that are used to ’duplicate’ an object. What this means depends on the context, it could just be incrementing the reference count, if data is a ref-counted object.

data

Passed: a foreign pointer, or #f.

the data to duplicate

%return

Returned: a foreign pointer, or a bytevector, or #f.

a duplicate of data

user-data

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

user data that was specified in g_datalist_id_dup_data()