glib GVariant
GVariant *
g_variant_new_boolean (gboolean value)
{
guchar v = value;
return g_variant_new_from_trusted (G_VARIANT_TYPE_BOOLEAN, &v, 1);
}
typedef struct _GVariantType GVariantType;
/**
* G_VARIANT_TYPE_BOOLEAN:
*
* The type of a value that can be either %TRUE or %FALSE.
**/
#define G_VARIANT_TYPE_BOOLEAN ((const GVariantType *) "b")