Method

GObjectClosureadd_finalize_notifier

Declaration

void
g_closure_add_finalize_notifier (
  GClosure* closure,
  gpointer notify_data,
  GClosureNotify notify_func
)

Description

Registers a finalization notifier which will be called when the reference count of closure goes down to 0.

Multiple finalization notifiers on a single closure are invoked in unspecified order. If a single call to g_closure_unref() results in the closure being both invalidated and finalized, then the invalidate notifiers will be run before the finalize notifiers.

Parameters

notify_data gpointer
 

Data to pass to notify_func.

notify_func GClosureNotify
 

The callback function to register.