getVal

fnT getVal(T)(GVariant * v)

Template to get a single value from a GVariant

Parameters

TD type of the value to get
vGVariant struct pointer

Returns

The single variant value of type T
fnauto getVal(T...)(GVariant * v) if (T.length > 1)

Template to get multiple values from a GVariant

Parameters

TD types of the values to get
vGVariant struct pointer

Returns

A tuple containing the values from the Variant of the specified types