[Vala] D-Bus server testing



Hi all,

due to various issues and limitations with type marshalling of
dbus-glib, I've rewritten D-Bus server support to directly use libdbus
to read and write D-Bus messages. The rewrite is not yet in trunk as it
hasn't been tested extensively yet. I've attached a patch to bug
560034[1].

The libdbus-based marshalling code is shared with the experimental
static D-Bus client support, which was introduced in Vala 0.5.2.

I'd like you to test this patch with your existing D-Bus server code and
report regressions. If we can get the rewrite to a usable state this
weekend, it will be part of the 0.5.3 release on Monday. Otherwise, I'll
commit it to trunk after the release.

There is also a new feature included in the patch. If the first
parameter of your D-Bus server method is a DBus.BusName, Vala will pass
the bus name of the sender as argument. BusName is a subclass of string.

The dynamic D-Bus client code is not affected by this patch, it still
uses dbus-glib. However, migrating the D-Bus client support will be the
next step after landing D-Bus server support.

Jürg

[1] http://bugzilla.gnome.org/show_bug.cgi?id=560034




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