GLib.VariantType.new_dict_entry
Description: Reference for GLib.VariantType.new_dict_entry

### Function

# GLib VariantTypenew_dict_entry

#### Declaration [src]

    GVariantType*
    g_variant_type_new_dict_entry (
      const GVariantType* key,
      const GVariantType* value
    )

#### Description [src]

Constructs the type corresponding to a dictionary entry with a key of type `key` and a value of type `value`.

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

#### Parameters

`key`

  Type: `GVariantType`

  A basic type to use for the key.

  The data is owned by the caller of the function.

`value`

  Type: `GVariantType`

  A type to use for the value.

  The data is owned by the caller of the function.

#### Return value

Type: `GVariantType`

A new dictionary entry type Since 2.24.

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