[PATCH] NoReply annotation in GLib bindings

John (J5) Palmieri johnp at redhat.com
Mon Oct 24 17:10:54 PDT 2005


On Mon, 2005-10-24 at 23:10 +0100, Robert McQueen wrote:
> John (J5) Palmieri wrote:
> > I would say .Method. as I could add this to the Python bindings also.
> > This would require a spec change if you did commit it so make sure you
> > do that too.  
> 
> Is a method with no return message different to one that returns an
> empty return value message? Having added in_signature and out_signature
> arguments to the Python method decorator, an empty out_signature still
> sends a return message but it has nothing in it. Is this useful? If not,
> should an empty out_signature result in this annotation being generated
> in the introspection data, or should a seperate decoration be created
> for this?

Quite different.  The Ping method sends an empty reply back.  Obviously
you want to get it otherwise what is the purpose of the Ping?  NoReply
means I'm not sending a reply back so if you are blocking on one you're
gona be waiting a long time (or at least till the timeout hits you which
right now it defaulted to 15 seconds).
 
-- 
John (J5) Palmieri <johnp at redhat.com>



More information about the dbus mailing list