some simple questions on "argument direction"
Matt Guo
matt at mattguo.com
Wed May 20 22:03:08 PDT 2009
Thanks, havoc,
I also got the anwsers here as I checked the introspection XML of
/org/gnome/SettingDaemon
...
<signal name="PluginActivated">
<arg type="s"/>
</signal>
...
So, arg dosn't has to have a name.
And in the introspection XML of /org/gnome/Tomboy/RemoteControl:
<signal name="NoteSaved">
<arg name="uri" direction="out" type="s" />
~~~~~~~~~~~~~~~
</signal>
So the signal arguments could have "out"directions or else, but as you
pointed, it dosen't matter.
B.R.
Matt
On Thu, May 21, 2009 at 12:57 PM, Havoc Pennington <hp at pobox.com> wrote:
> Hi,
>
> 2009/5/21 Matt Guo <matt at mattguo.com>:
>> So do you mean the following could also be a valid introspection result?
>> <method name="Foo">
>> <arg type="(iiu)" direction="in"/>
>> </method>
>
> Yes, I think so. In any case the names aren't in the wire protocol,
> they are purely "advisory" or for code generation.
>
>> And can I ask one more question:
>> Can I assert all the arguments of a dbus signal are "out"?
>
> iirc they are all "in" though really in/out have no meaning for a
> signal since there's only one message that has all the args in it.
> While method calls have two messages, the call and the reply, call has
> in args, reply has out args.
>
> Havoc
>
--
B.R.
GUO Rui (Matt)
More information about the dbus
mailing list