[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-dbus
Subject: Re: Introspection support for server using the low-level API
From: "Daniel P. Berrange" <dan () berrange ! com>
Date: 2006-06-06 16:26:24
Message-ID: 20060606162624.GC9332 () berrange ! com
[Download RAW message or body]
On Tue, Jun 06, 2006 at 05:45:46PM +0200, Marcel Holtmann wrote:
> Hi guys,
>
> the upcoming D-Bus enabled Bluetooth server is using the low-level D-Bus
> API only. The choice for that is on purpose. However for the client we
> don't limit them and it is possible to use whatever is available. And to
> make the life of client application programmers easier, I want to add
> introspection support. Any hints or good documentation on how to do this
> with a server using the low-level API?
Introspection is just implemented as a DBus method under a well-known
interface, so it should be no different in approach than any of
the other methods you're supporting. Basically, you want to provide
a method called 'Introspect' within an interface with a name of
'org.freedesktop.DBus.Introspectable', and have it return an XML
document describing your application interfaces.
The API contract is described here:
http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-introspectable
The XML format is here:
http://dbus.freedesktop.org/doc/dbus-specification.html#introspection-format
Regards,
Dan.
--
|=- GPG key: http://www.berrange.com/~dan/gpgkey.txt -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- berrange@redhat.com - Daniel Berrange - dan@berrange.com -=|
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic