Skip Menu |
 

This queue is for tickets about the Net-DBus CPAN distribution.

Report information
The Basics
Id: 74039
Status: new
Priority: 0/
Queue: Net-DBus

People
Owner: Nobody in particular
Requestors: squentin [...] free.fr
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Impossible to have properties return a{sv} values
Download (untitled) / with headers
text/plain 647b
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 ?)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.