Function

GObjecttype_add_interface_check

Declaration [src]

void
g_type_add_interface_check (
  gpointer check_data,
  GTypeInterfaceCheckFunc check_func
)

Description [src]

Adds a function to be called after an interface vtable is initialized for any class (i.e. after the interface_init member of GInterfaceInfo has been called).

This function is useful when you want to check an invariant that depends on the interfaces of a class. For instance, the implementation of GObject uses this facility to check that an object implements all of the properties that are defined on its interfaces.

Available since:2.4

Parameters

check_data gpointer
 

Data to pass to check_func.

check_func GTypeInterfaceCheckFunc
 

Function to be called after each interface is initialized.