create_extensionv


Description:

public Extension create_extensionv (PluginInfo info, Type extension_type, Parameter[]? parameters)

If the plugin identified by info implements the extension_type, then this function will return a new instance of this implementation, wrapped in a new [alias@Extension] instance.

Otherwise, it will return null.

Since libpeas 1.22, extension_type can be an Abstract [alias@GObject.Type] and not just an Interface [alias@GObject.Type].

See [method@Engine.create_extension] for more information.

Parameters:

this

A Engine.

info

A loaded PluginInfo.

extension_type

The implemented extension Type.

parameters

an array of Parameter.

n_parameters

the length of the parameters array.

Returns:

a new instance of Extension wrapping the extension_type instance, or null.