[avahi] DBUS API completed

Lennart Poettering lennart at poettering.de
Sat Jul 30 00:34:42 EST 2005


Hurrah!

The BDUS API is now fully implemented:

    http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/avahi-daemon/DBUS-API?root=flexmdns&view=auto

Though certainly some improvements like adding DBUS introspection and
limiting the resources that can be allocated via DBUS can be made, the
API is ready for public consumption.

This python script 

     http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/avahi-daemon/dbus-test.py?root=flexmdns&view=auto

shows how to use this stuff. Its really a bad example since it doesn't
deal with conflicts for the services it creates, but nonetheless it
shows how things work basically.

Any real documentation isn't available yet. Enums are wrapped as
integers for the client, so it might be non-trivial to make use of
them. Consult core.h if you need the integer value of an enum.

A pygtk tool similar to avahi-discover but using this DBUS-API should
be easy to write. Anyone?

A C client wrapper hiding the DBUS subtleties is still to be done.

Lennart

-- 
Lennart Poettering; lennart [at] poettering [dot] de
ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.de/lennart/


More information about the avahi mailing list