DBusUtilities.gvalueToGvariant

Converts a GValue to a GVariant of the type indicated by the type parameter. Since 2.30

class DBusUtilities
static
gvalueToGvariant

Parameters

gvalue Value

A GValue to convert to a GVariant.

type VariantType

A GVariantType.

Return Value

Type: Variant

A GVariant (never floating) of GVariantType type holding the data from gvalue or NULL in case of failure. Free with g_variant_unref().

Meta