gvariant_to_gvalue


Description:


[ Version ( since = "2.30" ) ]
public Value gvariant_to_gvalue (Variant value)

Converts a Variant to a Value.

If value is floating, it is consumed.

The rules specified in the gvalue_to_gvariant function are used - this function is essentially its reverse form. So, a Variant containing any basic or string array type will be converted to a Value containing a basic value or string array. Any other Variant ( handle, variant, tuple, dict entry) will be converted to a Value containing that Variant .

The conversion never fails - a valid Value is always returned in out_gvalue.

Parameters:

value

A Variant.

out_gvalue

Return location pointing to a zero-filled (uninitialized) Value.


Namespace: GLib.DBus
Package: gio-2.0



2022 vala-language.org