Class
PeasObjectModule
Description [src]
class Peas.ObjectModule : GObject.TypeModule {
parent_instance: GTypeModule
}
Type module which allows extension registration.
PeasObjectModule
is a subclass of GTypeModule
which allows
registration of extensions. It will be used by C extensions implementors to
register extension implementations from within the peas_register_types module function.
Constructors
peas_object_module_new
Creates a new PeasObjectModule
.
peas_object_module_new_embedded
Creates a new PeasObjectModule
for an embedded plugin.
Available since: 1.18
peas_object_module_new_full
Creates a new PeasObjectModule
.
Instance methods
peas_object_module_create_object
Creates an object for the exten_type
passing n_parameters
and parameters
to the FactoryFunc.
peas_object_module_get_library
Gets the library.
peas_object_module_get_module_name
Gets the module name.
peas_object_module_get_path
Gets the path.
peas_object_module_get_symbol
Gets the symbol name used to register extension implementations.
Available since: 1.18
peas_object_module_provides_object
Determines if the module provides an extension for exten_type
.
peas_object_module_register_extension_factory
Register an implementation for an extension type through a factory
function factory_func
which will instantiate the extension when requested.
peas_object_module_register_extension_type
Register impl_type
as an extension which implements extension_type
.
Properties
Peas.ObjectModule:local-linkage
Whether the module is loaded with local linkage, i.e. #G_MODULE_BIND_LOCAL.