Getting a list of object paths for a service ?

Havoc Pennington hp at redhat.com
Sat Sep 3 14:06:38 EST 2005


On Thu, 2005-09-01 at 17:05 +0100, Daniel P. Berrange wrote:
> When debugging interactions between services I've found it very helpful 
> to be able to dump information about the bus & services running on it.
> It is currently possible to get a list of services attached to a bus
> using org.freedesktop.DBus.ListNames(). At the other end of the scale,
> it is similarly possible to get a list of methods, signals & properties 
> exported by an object using the Introspect() method. What I can't seem
> to find is any way to get list of object paths registered by a service.
> 
> Is such information even known by the bus, or does it remain within the
> client providing the service ? Looking at the impl of the function
> dbus_connection_register_object_path() it doesn't look like details
> about exported object paths are provided to the bus. Would it be worth
> defining an common interface & object path at which bindings could 
> automatically provide this info on behalf of services ?
> 

IIRC this is supposed to be provided by Introspect() i.e. the XML is
supposed to contain a recursive node hierarchy. Maybe I never got around
to coding it though.

Havoc




More information about the dbus mailing list