dbus server sans callbacks

Simon Burton simon at arrowtheory.com
Fri Mar 9 13:05:23 PST 2007


On Fri, 09 Mar 2007 14:35:38 -0500
Havoc Pennington <hp at redhat.com> wrote:

> 
> Simon Burton wrote:
> > I'm writing a dbus server, but without using the callback mechanism.
> > (The app has it's own select loop).
> > 
> > So, I'm thinking I can create a DBusServer and extract its fd for the select loop,
> 
> I don't quite understand what you mean... the DBusWatch etc. is intended 
> to integrate with an existing main loop, see for example the docs on 
> dbus_connection_set_watch_functions():
> 
> http://dbus.freedesktop.org/doc/dbus/api/html/group__DBusConnection.html#g71e9a01114fcffe86b450d9b521a4540
> 
> You will also need to use set_timeout_functions()

Callback's are going to cause headaches for me: all this c-code
is being autogenerated from a higher-level language.

This all began from not having any luck deploying the dbus daemon,
so I might start another thread asking about that.

thanks,

Simon.


More information about the dbus mailing list