Services calling back to clients
Ross Burton
ross at burtonini.com
Wed Jun 22 06:59:20 PDT 2005
On Wed, 2005-06-22 at 08:29 -0400, Havoc Pennington wrote:
> On Wed, 2005-06-22 at 07:47 +0100, Ross Burton wrote:
> > When a server's method is bound, it has no way of accessing the
> > DBusMessage which caused it to be executed. Is this correct?
>
> I think so yes, but it's important which part of the message you were
> after (the sender)
>
> You could always pass in the sender explicitly in the method signature,
> as a worst-case workaround hack.
That is what I am currently doing. It's vile. :)
> The bindings could also add a context object as first arg to every
> method, and get_sender() could be a function on the context object.
Currently the binding signature goes:
object, in_arg, ..., *out_arg, ..., *error
If there was a context object to avoid excessive arguments the error
could be part of the context. Colin?
Ross
--
Ross Burton mail: ross at burtonini.com
jabber: ross at burtonini.com
www: http://www.burtonini.com./
PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF
More information about the dbus
mailing list