setFreeFunc

fun setFreeFunc(proxy: Proxy, freeFunc: (<Error class: unknown class>?) -> Unit)

Sets a custom cleanup function for the specified Proxy instance.

This function overrides the default cleanup mechanisms (g_boxed_free or g_free).

Parameters

proxy

The Proxy instance.

freeFunc

A lambda function to perform the cleanup.