QueueArray.setClearFunc

Sets a function to clear an element of @array.

The @clear_func will be called when an element in the array data segment is removed and when the array is freed and data segment is deallocated as well. @clear_func will be passed a pointer to the element to clear, rather than the element itself.

Note that in contrast with other uses of #GDestroyNotify functions, @clear_func is expected to clear the contents of the array element it is given, but not free the element itself.

class QueueArray
void
setClearFunc
(
GDestroyNotify clearFunc
)

Parameters

clearFunc GDestroyNotify

a function to clear an element of @array

Meta

Since

1.16