TypeModule
Object Hierarchy:
Description:
In order to implement dynamic loading of types based on TypeModule, the load
and unload functions in TypeModule must be implemented.
Namespace: GLib
Package: gobject-2.0
Content:
Creation methods:
Methods:
-
public bool use ()
Increases the use count of a TypeModule by one. If the
use count was zero before, the plugin will be loaded. If loading the plugin fails, the use count is reset to its prior value.
-
public void unuse ()
Decreases the use count of a TypeModule by one. If the
result is zero, the module will be unloaded. (However, the TypeModule will not be
freed, and types associated with the TypeModule are not unregistered. Once a
TypeModule is initialized, it must exist forever.)
-
public void set_name (string name)
-
public virtual bool load ()
-
public virtual void unload ()