org.freedesktop.Hal.Manager.GetAllDevices introspection format "ao"

David Zeuthen david at fubar.dk
Sat Jul 22 07:55:46 PDT 2006


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?

Cheers,
David




More information about the hal mailing list