Returns the string value of a #GVariant instance with a string
type. This includes the types %G_VARIANT_TYPE_STRING,
%G_VARIANT_TYPE_OBJECT_PATH and %G_VARIANT_TYPE_SIGNATURE.
The string will always be UTF-8 encoded, and will never be %NULL.
If @length is non-%NULL then the length of the string (in bytes) is
returned there. For trusted values, this information is already
known. For untrusted values, a strlen() will be performed.
It is an error to call this function with a @value of any type
other than those three.
The return value remains valid as long as @value exists.
Returns the string value of a #GVariant instance with a string type. This includes the types %G_VARIANT_TYPE_STRING, %G_VARIANT_TYPE_OBJECT_PATH and %G_VARIANT_TYPE_SIGNATURE.
The string will always be UTF-8 encoded, and will never be %NULL.
If @length is non-%NULL then the length of the string (in bytes) is returned there. For trusted values, this information is already known. For untrusted values, a strlen() will be performed.
It is an error to call this function with a @value of any type other than those three.
The return value remains valid as long as @value exists.