Re: [Vala] DBus horror



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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]