C-API Examples

Tim Moloney t.moloney at verizon.net
Wed May 3 17:55:50 PDT 2006


Kosina, Martin wrote:
> Hi all,
>
> Does anyone have good working examples of using the C API ? (Sample
> client/server type scenarios, ideally). We are exploring a binding for a
> custom component system and would like to utilize the C API directly.
> I've seen lots of Glib and Qt stuff, but the low-level examples are a
> bit harder to come by. (I do have John Palmieri's "Get on D-bus"
> article, but having hard time getting it to work properly (is
> "ListServices" still exported by org.freedesktop.Dbus ?) and would like
> to see a simple server-side one, as well.
>
> Are there any other docs available besides doxygen for the low-level API
> ?
>
> Many thanks!
>
> Martin
>
>
> ----
> Martin Kosina
> Intel Corporation / JF4-356
> Hillsboro, Ore. 97124, USA 
> +1-503-712-8162 
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>   

I don't know if it is a good example (I haven't looked at the code 
closely) but Matthew Johnson's Java library appears to use the C 
bindings directly in its JNI.  You'll find various links to it on the 
D-Bus Bindings page 
(http://www.freedesktop.org/wiki/Software_2fDBusBindings).  I hope that 
helps.

Tim Moloney



More information about the dbus mailing list