TypeModule.addInterface

Registers an additional interface for a type, whose interface lives in the given type plugin. If the interface was already registered for the type in this plugin, nothing will be done.

As long as any instances of the type exist, the type plugin will not be unloaded.

Since 2.56 if @module is %NULL this will call g_type_add_interface_static() instead. This can be used when making a static build of the module.

Parameters

instanceType GType

type to which to add the interface.

interfaceType GType

interface type to add

interfaceInfo GInterfaceInfo*

type information structure

Meta