Peas.ExtensionSet.new_with_properties
Description: Reference for Peas.ExtensionSet.new_with_properties

### Constructor

# Peas ExtensionSetnew_with_properties

#### Declaration [src]

    PeasExtensionSet*
    peas_extension_set_new_with_properties (
      PeasEngine* engine,
      GType exten_type,
      guint n_properties,
      const gchar** prop_names,
      const GValue* prop_values
    )

#### Description [src]

Create a new `PeasExtensionSet` for the `exten_type` extension type.

If `engine` is `NULL`, then the default engine will be used.

Since libpeas 1.22, `exten_type` can be an Abstract `GType` and not just an Interface `GType`.

See `peas_extension_set_new()` for more information.

This constructor is renamed to `()` in language bindings.

#### Parameters

`engine`

  Type: `PeasEngine`

  A `PeasEngine`, or `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

`exten_type`

  Type: `GType`

  The extension `GType`.

`n_properties`

  Type: `guint`

  The length of the `prop_names` and `prop_values` array.

`prop_names`

  Type: An array of `gchar*`

  An array of property names.

  The length of the array is specified in the `n_properties` argument.
  The data is owned by the caller of the function.
  Each element is a NUL terminated UTF-8 string.

`prop_values`

  Type: An array of `GValue`

  An array of property values.

  The length of the array is specified in the `n_properties` argument.
  The data is owned by the caller of the function.

#### Return value

Type: `PeasExtensionSet`

A new instance of `PeasExtensionSet`.

Since 1.24.0.

The caller of the function takes ownership of the data, and is responsible for freeing it.