Return an object from a method
John (J5) Palmieri
johnp at redhat.com
Thu May 11 10:41:39 PDT 2006
On Thu, 2006-05-11 at 14:01 +0100, Robert McQueen wrote:
> Luigi Paioro wrote:
> > Hi,
> > I'm new to DBUS, and I would like to have an information about what
> > kind of data types a DBUS object method cans return. In particular, is
> > it possible to get an object instance as returned value from a DBUS
> > object method call?
> No, you cannot send an object over the bus in this way. You have two
> options, one of which is like sending a reference, and one is like
> sending a copy.
> To send a reference, you export the object inside your sending process
> on the bus, and send its object path to the other end, so that they can
> make a proxy on their end and use it to make D-Bus method calls to your
I'm thinking we should standardize on a tuple format for sending
service, interface and object path between bindings as part of the spec.
Not sure if we need to add a new data type but this would make it easy
to say send a Python dbus.ProxyObject or dbus.Interface as an argument
to method and have the binding on the other side reconstruct the proxy.
Object paths on their own are just not descriptive enough.
John (J5) Palmieri <johnp at redhat.com>
More information about the dbus