createVariant

fnGVariant * createVariant(T)(T val)

Template to create a GVariant from a single D value.

Parameters

TThe type of the value
valThe value to assign to the new Variant.

Returns

New variant C instance with floating reference
fnGVariant * createVariant(T...)(T vals) if (vals.length > 1)

Template to create a new tuple GVariant from multiple D values.

Parameters

TThe D types to create the variant from
valsThe values to assign

Returns

New variant C instance with floating reference