Companion
Functions
Determines if a given string is a valid D-Bus object path. You should ensure that a string is a valid D-Bus object path before passing it to g_variant_new_object_path().
Determines if a given string is a valid D-Bus type signature. You should ensure that a string is a valid D-Bus type signature before passing it to g_variant_new_signature().
Creates a new boolean #GVariant instance -- either true or false.
Constructs an array of bytestring #GVariant from the given array of strings.
Creates a new dictionary entry #GVariant. @key and @value must be non-null. @key must be a value of a basic type (ie: not a container).
Constructs a new array #GVariant instance, where the elements are of @element_type type.
Constructs a new serialized-mode #GVariant instance. This is the inner interface for creation of new serialized values that gets called from various functions in gvariant.c.
Depending on if @child is null, either wraps @child inside of a maybe container or creates a Nothing instance for the given @type.
Creates a D-Bus object path #GVariant with the contents of @object_path.
Creates a D-Bus type signature #GVariant with the contents of
Creates a string #GVariant with the contents of @string.
Boxes @value. The result is a #GVariant instance representing a variant containing the original value.
Pretty-prints a message showing the context of a #GVariant parse error within the string for which parsing was attempted.
Same as g_variant_error_quark().