GLib.Variant.new_signature
function new_signature(signature: String): GLib.Variant {
// Gjs wrapper for g_variant_new_signature()
}
Creates a D-Bus type signature GLib.Variant with the contents of @string. @string must be a valid D-Bus type signature. Use GLib.variant_is_signature if you're not sure.
Since 2.24
- signature
a normal C nul-terminated string
- Returns
a floating reference to a new signature GLib.Variant instance