call for advice (is dbus ok for me ?)

sfora dim sfora.dim at gmail.com
Thu Aug 21 09:54:27 PDT 2008


Hi all,

I ponder whether I should use dbus for my server.

It's a multithreaded daemon written in C that needs to export API for
numerous clients, each of which may be written in a different
language.

I need the clients to be able to call the daemon's exported functions,
to be able to pass it all sorts of data arguments, and most
importantly, I need them to be able to register a callback at the
daemon. Once the daemon finishes the task, it should call the given
callback.

I know there are many language bindings to dbus, and that's really
great for the clients, but my daemon is pure C, and it is
multithreaded. is there a preferred binding I should use for the C
server ?

Is d-bus mature and capable for supporting such a daemon (I really
need production level of quality) ?

How should I approach the task of writing the server part ? using
libdbus ? It seems quite big and daunting a task. Is it ? Or maybe
there's an easier way to add dbus support to multithreaded C servers ?
any library ?

Thank you all!
Sfora


More information about the dbus mailing list