Declaration [src]

peas_engine_create_extension (
  PeasEngine* engine,
  PeasPluginInfo* info,
  GType extension_type,
  const char* first_property,

Description [src]

If the plugin identified by info implements the extension_type, then this function will return a new instance of this implementation.

When creating the new instance of the extension_type subtype, the provided construct properties will be passed to the extension construction handler (exactly like if you had called g_object_new() yourself).

This method is not directly available to language bindings.

The implementation of this method is provided by peas_engine_create_extension_with_properties() in language bindings



Type: PeasPluginInfo

A loaded PeasPluginInfo.

The data is owned by the caller of the method.

Type: GType

The implemented extension GType.


Type: const char*

The name of the first property.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.


The value of the first property, followed optionally by more name/value pairs, followed by NULL.

Return value

Type: GObject

A new GObject that implements extension_type; or NULL.

The data is owned by the instance.