GLib.VariantType.new_array
Description: Reference for GLib.VariantType.new_array

### Function

# GLib VariantTypenew_array

since: 2.24

#### Declaration

    GVariantType*
    g_variant_type_new_array (
      const GVariantType* element
    )

#### Description

Constructs the type corresponding to an array of elements of the type `type`.

It is appropriate to call `g_variant_type_free()` on the return value.

Available since: 2.24

#### Parameters

`element`

  Type: `GVariantType`

  A `GVariantType`.

  The data is owned by the caller of the function.

#### Return value

Type: `GVariantType`

A new array `GVariantType`

Since 2.24

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