General question on D-Bus design considerations

David Zeuthen zeuthen at gmail.com
Mon Aug 23 11:24:40 PDT 2010


Hi,

On Mon, Aug 23, 2010 at 1:22 PM, Lennart Poettering <mzqohf at 0pointer.de> wrote:
> Uh? That's not really true. There is proper nego implemented for the
> unix fd stuff.

Indeed - the feature negotiation part of the authentication protocol
works just fine - in GDBus the negotiated capabilities are expressed
like this

 http://library.gnome.org/devel/gio/unstable/GDBusConnection.html#GDBusCapabilityFlags

and I expect to add things like G_DBUS_CAPABILITY_FLAGS_MAYBE_TYPES
and G_DBUS_CAPABILITY_FLAGS_FLOAT_TYPES once those bit hits the D-Bus
spec.

The way it is typically used is like this

 http://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-server.c?id=2.25.14#n123

e.g. you have an ifdef for if you are on UNIX in the first place, and
then a run-time check if you are connected to a message bus supporting
that capability.

     David


More information about the dbus mailing list