org.freedesktop.Hal.Manager.GetAllDevices introspection format
"ao"
Richard Hughes
hughsient at gmail.com
Sat Jul 22 08:55:36 PDT 2006
On Sat, 2006-07-22 at 10:55 -0400, David Zeuthen wrote:
> On Sat, 2006-07-15 at 20:42 +0100, Richard Hughes wrote:
> > I've been auditing the introspection stuff used in HAL, and I've found
> > an oddity:
> >
> > <interface name="org.freedesktop.Hal.Manager">
> > <method name="GetAllDevices">
> > <arg name="devices" direction="out" type="ao"/>
> > </method>
> > ....
> >
> > Why are we using 'ao' (array of pointer objects) rather than 'as' (array
> > of strings) as we just get back a list of udi's?
>
> Because they in fact are object paths! Which happens to be strings, but
> in a high-level language, the D-BUS bindings may be smart and give you
> the reference to a proxy for the object instead of a string.
>
> Does that make sense?
Yes, gotcha, thanks.
Richard.
More information about the hal
mailing list