createVariant

Template to create a GVariant from a single D value.

  1. GVariant* createVariant(T val)
    createVariant
    (
    T
    )
    (
    T val
    )
  2. GVariant* createVariant(T vals)

Parameters

T

The type of the value

val T

The value to assign to the new Variant.

Return Value

Type: GVariant*

New variant C instance with floating reference