Havoc Pennington hp at pobox.com
Wed Apr 30 14:34:59 PDT 2008


On Wed, Apr 30, 2008 at 8:45 AM, Thomas William
<thomas.william at gwtonline-fb.de> wrote:
>  To watch for these Calls I use a very simple approach:
>  dbus_connection_read_write
>  dbus_connection_pop_message

If you use pop_message(), then DBusConnection will not do any
dispatch. That means the object tree in DBusConnection won't be

So basically you have to implement Introspect() yourself, and have it
return the object paths that you support.

If you used dispatch() rather than pop_message(), you could register
your objects under a path and DBusConnection would deal with
introspection of the object tree, but you would still need to
implement Introspect() for the interfaces on individual objects.

If you look at the source for dbus-glib and other bindings using
libdbus you can get a sense for how it works.


More information about the dbus mailing list