4.5 GCopyFunc

Callback: GCopyFunc

A procedure given for it is called as (procedure src) ⇒ %return. If the function that it is given to has no user data for it, it is also passed data, last.

A function of this signature is used to copy the node data when doing a deep-copy of a tree.

src

Passed: a foreign pointer.

A pointer to the data which should be copied

%return

Returned: a foreign pointer, or a bytevector.

A pointer to the copy

data

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

Additional data