Method

NumCosmoMathSerializegvalue_to_gvariant

Declaration [src]

GVariant*
ncm_serialize_gvalue_to_gvariant (
  NcmSerialize* ser,
  GValue* val
)

Description [src]

Converts val to a GVariant, serializing objects with ncm_serialize_to_variant(). Aborts for a type it cannot convert.

Parameters

val

Type: GValue

A GValue.

The data is owned by the caller of the method.

Return value

Type: GVariant

The GVariant, or NULL for a NULL object.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be NULL.