GValue to a
GVariant of the type indicated by the
The conversion is using the following rules:
This can fail if e.g.
gvalue is of type #G_TYPE_STRING and
is [‘i’][G-VARIANT-TYPE-INT32:CAPS]. It will also fail for any
(including e.g. #G_TYPE_OBJECT and #G_TYPE_BOXED derived-types) not
in the table above.
Note that if
gvalue is of type #G_TYPE_VARIANT and its value is
NULL, the empty
GVariant instance (never
returned (e.g. 0 for scalar types, the empty string for string types,
‘/’ for object path types, the empty array for any array type and so on).
g_dbus_gvariant_to_gvalue() function for how to convert a
GVariant to a
|The caller of the function takes ownership of the data, and is responsible for freeing it.|