[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: Annotation type for an asyncronous method using dbus qt3 binding
From:       Thiago Macieira <thiago () kde ! org>
Date:       2007-11-06 7:18:25
Message-ID: 200711060818.26197.thiago () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Havoc Pennington wrote:
>The NO_REPLY flag is a property of the specific invocation (or of code
>generated by a binding), not a property of the interface per se. That
>is, NO_REPLY is an aspect of how a method is invoked, not an aspect of
>the method.
>
>(Hopefully this is what that annotation does in Qt also, otherwise I
>don't think stuff marked with it will be interoperable)

When generating proxy interfaces, if the flag is set, the DBusMessage 
containing the call with set the NO_REPLY flag. The caller will also not 
block and will return immediately after posting the message.

When generating server (adaptor) interfaces, if the flag is set, it 
imposes a void return type (and no out parameters). 

The glue around the function being called to handle calls will always send 
a reply if the NO_REPLY flag isn't set, and will always not send one if 
the flag is set. That doesn't mean that the functions called don't send 
replies of their own.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

["signature.asc" (application/pgp-signature)]

_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic