Getting a list of object paths for a service ?

Trent Lloyd lathiat at bur.st
Sat Sep 3 17:37:54 EST 2005


On Sat, Sep 03, 2005 at 12:06:38AM -0400, Havoc Pennington wrote:
> 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.

That wouldn't work in dynamic situations tho right?

e.g. my server allocates paths for each client / various objects ?

Trent

> 
> Havoc
> 
> 
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus

-- 
Trent Lloyd <lathiat at bur.st>
Bur.st Networking Inc.


More information about the dbus mailing list