Method

NumCosmoMathVarDictset_variant

Declaration [src]

void
ncm_var_dict_set_variant (
  NcmVarDict* vd,
  const gchar* key,
  GVariant* value
)

Description [src]

Sets a GVariant to a NcmVarDict. If there is already a GVariant with key key, it is unreferenced.

Valid GVariant types are: - G_VARIANT_TYPE_STRING - G_VARIANT_TYPE_INT32 - G_VARIANT_TYPE_DOUBLE - G_VARIANT_TYPE_BOOLEAN - G_VARIANT_TYPE_ARRAY (element-type int) - G_VARIANT_TYPE_ARRAY (element-type double) - G_VARIANT_TYPE_ARRAY (element-type boolean).

Parameters

key

Type: const gchar*

A string.

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

Type: GVariant

A GVariant.

The data is owned by the caller of the method.