-
Notifications
You must be signed in to change notification settings - Fork 246
Open
Labels
Description
Hi,
There doesn't seem to be tuple support in the ParseVariant function, even if the signature contains it.
For example, my understanding of https://docs.gtk.org/glib/gvariant-text-format.html#tuples is that this should work:
pair, err := dbus.ParseVariant(`
(1,2)
`, dbus.ParseSignatureMust("(ii)"))
However, the tokenization fails with unrecognized type "(1,2)".
There is no case for ( in varLexNormal.
Is this a known limitation ? There doesn't seem to be any occurrence of tuple in the godbus documentation.
https://pkg.go.dev/github.com/godbus/dbus/v5#hdr-Conversion_Rules
Thanks!