Org freedesktop Hal. org freedesktop Hal Manager
From Openmoko
(Difference between revisions)
Line 91: | Line 91: | ||
</pre> | </pre> | ||
− | [[Category: | + | [[Category:D-Bus]] |
Latest revision as of 00:33, 1 August 2008
[edit] Overview
Bus name: org.freedesktop.Hal Object name: /org/freedesktop/Hal/Manager interface org.freedesktop.DBus.Introspectable (data:s) Introspect() interface org.freedesktop.Hal.Manager (devices:ao) GetAllDevices() (does_it_exist:b) DeviceExists(udi:o) (devices:ao) FindDeviceStringMatch(key:s,value:s) (devices:ao) FindDeviceByCapability(capability:s) (temporary_udi:s) NewDevice() () Remove(udi:s) () CommitToGdl(temporary_udi:s,global_udi:s) () AcquireGlobalInterfaceLock(interface_name:s,exclusive:b) () ReleaseGlobalInterfaceLock(interface_name:s) DeviceAdded(udi:s) DeviceRemoved(udi:s) NewCapability(udi:s,cap_name:s) GlobalInterfaceLockAcquired(interface_name:s,lock_holder:s,num_locks:i) GlobalInterfaceLockReleased(interface_name:s,lock_holder:s,num_locks:i)
[edit] Introspect XML
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> <node> <interface name="org.freedesktop.DBus.Introspectable"> <method name="Introspect"> <arg name="data" direction="out" type="s"/> </method> </interface> <interface name="org.freedesktop.Hal.Manager"> <method name="GetAllDevices"> <arg name="devices" direction="out" type="ao"/> </method> <method name="DeviceExists"> <arg name="does_it_exist" direction="out" type="b"/> <arg name="udi" direction="in" type="o"/> </method> <method name="FindDeviceStringMatch"> <arg name="devices" direction="out" type="ao"/> <arg name="key" direction="in" type="s"/> <arg name="value" direction="in" type="s"/> </method> <method name="FindDeviceByCapability"> <arg name="devices" direction="out" type="ao"/> <arg name="capability" direction="in" type="s"/> </method> <method name="NewDevice"> <arg name="temporary_udi" direction="out" type="s"/> </method> <method name="Remove"> <arg name="udi" direction="in" type="s"/> </method> <method name="CommitToGdl"> <arg name="temporary_udi" direction="in" type="s"/> <arg name="global_udi" direction="in" type="s"/> </method> <method name="AcquireGlobalInterfaceLock"> <arg name="interface_name" direction="in" type="s"/> <arg name="exclusive" direction="in" type="b"/> </method> <method name="ReleaseGlobalInterfaceLock"> <arg name="interface_name" direction="in" type="s"/> </method> <signal name="DeviceAdded"> <arg name="udi" type="s"/> </signal> <signal name="DeviceRemoved"> <arg name="udi" type="s"/> </signal> <signal name="NewCapability"> <arg name="udi" type="s"/> <arg name="cap_name" type="s"/> </signal> <signal name="GlobalInterfaceLockAcquired"> <arg name="interface_name" type="s"/> <arg name="lock_holder" type="s"/> <arg name="num_locks" type="i"/> </signal> <signal name="GlobalInterfaceLockReleased"> <arg name="interface_name" type="s"/> <arg name="lock_holder" type="s"/> <arg name="num_locks" type="i"/> </signal> </interface> </node>