On Thu, 2009-02-19 at 10:49 -0300, Marcelo Boveto Shima wrote:
> But no luck yet. Now it is segfaulting at OpenSessionWithParameters
> call.
> I am using vala 0.5.6.
> am I missing something else?

The dynamic D-Bus client support still uses dbus-glib based marshalling,
which doesn't support arrays of structs. Static D-Bus client supports
this with vala master. The marshalling code for dynamic D-Bus clients
will be ported to the same code static D-Bus clients are already using.

Code snippet explaining how to use static D-Bus client support here:

[DBus (name = "org.freedesktop.ConsoleKit.Manager")]
public interface ConsoleKit.Manager : DBus.Object {
    public abstract string open_session_with_parameters (Test[] parameters);
}

[...]

this.ckmanager = (ConsoleKit.Manager) conn.get_object
("org.freedesktop.ConsoleKit", "/org/freedesktop/ConsoleKit/Manager");

Jürg

_______________________________________________
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to