Solved it, Everything fine with vala in this files, I just called the wrong functions: getMetaData instead of getMetadata.
Nikos On Tue, Dec 15, 2009 at 3:11 PM, Kos <[email protected]> wrote: > Hey, > > I'm back with more DBus problems. Now I want to receive an 'a{sv}' output. > I translated that into a HashTable<string,Value?>, but I get errors. > First I tried it the normal way, e.g. with return values. But it errors > that there is no signature "" on the interface > http://pastebin.org/65152 (example vala-file with comments and the errors) > > After that I tried with the an out variable. (Thinking of the struct > solution...) > http://pastebin.org/65154 (example vala-file with comments and the errors) > > Nikos > > > On Tue, Dec 15, 2009 at 1:15 PM, Kos <[email protected]> wrote: > >> Thank you, >> >> That works. Even with the dynamic method. >> Is there a time window when the fixes will emerge in a vala release? (Just >> out of curiosity) >> >> @Jürg, sorry for the double mail. Forgot to send a copy to the mailinglist >> >> >> Nikos >> >> On Tue, Dec 15, 2009 at 12:59 PM, Jürg Billeter <[email protected]> wrote: >> >>> On Tue, 2009-12-15 at 12:45 +0100, Kos wrote: >>> > You can find the test-source here: http://pastebin.org/65108 >>> > I compile it with valac --pkg dbus-glib-1 vlc_test3.vala -g >>> >>> Use the static variant but with an out parameter instead of a return >>> value as in the following lines: >>> >>> public abstract void GetStatus (out State state) throws DBus.Error; >>> >>> // Get info >>> org_freedesktop_MediaPlayer.State state; >>> dbus.GetStatus (out state); >>> >>> It should also work with return values, however, there was a change in >>> how struct return values are processed a couple months back, and it's >>> possible that the D-Bus code still needs a few fixes there. >>> >>> Jürg >>> >>> >>> >> >
_______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
