signal with return value using glib binding

Matthew Johnson dbus at matthew.ath.cx
Thu Aug 10 04:34:39 PDT 2006


On Wed, 9 Aug 2006, Havoc Pennington wrote:

> With GObject signals can have a return value because signals amount to a 
> series of method calls in a deterministic order and it's possible to define 
> an algorithm for how these multiple return values map to the signal's single 
> return value.
>
> With dbus, there are two issues:
> - the signal emitter has no idea how many or which handlers exist
> - there is no defined order in which the handlers run
>
> A return value would have to be something like "wait N seconds; if any 
> handlers have sent us a return value in that time, then return the 
> first/last/random one of said values"

How do you mean 'return a value' in DBus terms? sending another signal?
a METHOD_RETURN (ewww)? DBus doesn't provide for returns from signals,
does it? (I'm looking for what the bus traffic would look like, rather
than how glib works)

Matt

-- 
Matthew Johnson
http://www.matthew.ath.cx/


More information about the dbus mailing list