Skip to content

Tuple support in ParseVariant. #388

@rewk

Description

@rewk

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions