Subject: | Impossible to have properties return a{sv} values |
my app implement the mpris DBus interface (http://www.mpris.org/2.1/spec/)
which include this property :
http://www.mpris.org/2.1/spec/Player_Node.html#Property:Metadata
I didn't find a way to implement this with the documented functions. I
managed to make it work by using this :
my $type=
[ &Net::DBus::Binding::Message::TYPE_DICT_ENTRY,
[ &Net::DBus::Binding::Message::TYPE_STRING,
[ &Net::DBus::Binding::Message::TYPE_VARIANT,
[],
]]];
return Net::DBus::Binding::Value->new($type,\%values);
(and of course using functions like dbus_int64() for each of the values)
There should be an official way to do this (maybe I missed it ?)