org.freedesktop.Hal.Manager.GetAllDevices introspection format "ao"
Richard Hughes
hughsient at gmail.com
Sat Jul 15 12:42:04 PDT 2006
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?
[hughsie at hughsie-laptop tools]$ dbus-send --system
--dest=org.freedesktop.Hal --print-reply /org/freedesktop/Hal/Manager
org.freedesktop.Hal.Manager.GetAllDevices
method return sender=:1.117 -> dest=:1.118
array [
string "/org/freedesktop/Hal/devices/acpi_lcd"
string "/org/freedesktop/Hal/devices/acpi_PWRF"
...
string "/org/freedesktop/Hal/devices/computer"
]
Thanks,
Richard.
More information about the hal
mailing list