Org freedesktop Hal. org freedesktop Hal devices apm ac adapter

From Openmoko

Jump to: navigation, search

Overview

Bus name: org.freedesktop.Hal
Object name: /org/freedesktop/Hal/devices/apm_ac_adapter
  interface org.freedesktop.DBus.Introspectable
    (data:s) Introspect()
  interface org.freedesktop.Hal.Device
    (properties:a{sv}) GetAllProperties()
    () SetMultipleProperties(properties:a{sv})
    (value:v) GetProperty(key:s)
    (value:s) GetPropertyString(key:s)
    (value:as) GetPropertyStringList(key:s)
    (value:i) GetPropertyInteger(key:s)
    (value:b) GetPropertyBoolean(key:s)
    (value:d) GetPropertyDouble(key:s)
    () SetProperty(key:s,value:v)
    () SetPropertyString(key:s,value:s)
    () SetPropertyStringList(key:s,value:as)
    () SetPropertyInteger(key:s,value:i)
    () SetPropertyBoolean(key:s,value:b)
    () SetPropertyDouble(key:s,value:d)
    () RemoveProperty(key:s)
    (type:i) GetPropertyType(key:s)
    (does_it_exist:b) PropertyExists(key:s)
    () AddCapability(capability:s)
    (does_it_have_capability:b) QueryCapability(capability:s)
    (acquired_lock:b) Lock(reason:s)
    (released_lock:b) Unlock()
    () AcquireInterfaceLock(interface_name:s,exclusive:b)
    () ReleaseInterfaceLock(interface_name:s)
    (whether_caller_is_locked_out:b) IsCallerLockedOut(interface_name:s,caller_sysbus_name:s)
    (whether_it_is_locked_by_others:b) IsLockedByOthers(interface_name:s)
    () StringListAppend(key:s,value:s)
    () StringListPrepend(key:s,value:s)
    () StringListRemove(key:s,value:s)
    (rc:b) EmitCondition(condition_name:s,condition_details:s)
    (call_had_sideeffect:b) Rescan()
    (call_had_sideeffect:b) Reprobe()
    (rc:b) ClaimInterface(interface_name:s,introspection_xml:s)
    (rc:b) AddonIsReady()
    PropertyModified(num_updates:i,updates:a(sbb))
    Condition(cond_name:s,cond_details:s)
    InterfaceLockAcquired(interface_name:s,lock_holder:s,num_locks:i)
    InterfaceLockReleased(interface_name:s,lock_holder:s,num_locks:i)

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.Device">
    <method name="GetAllProperties">
      <arg name="properties" direction="out" type="a{sv}"/>
    </method>
    <method name="SetMultipleProperties">
      <arg name="properties" direction="in" type="a{sv}"/>
    </method>
    <method name="GetProperty">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="out" type="v"/>
    </method>
    <method name="GetPropertyString">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="out" type="s"/>
    </method>
    <method name="GetPropertyStringList">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="out" type="as"/>
    </method>
    <method name="GetPropertyInteger">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="out" type="i"/>
    </method>
    <method name="GetPropertyBoolean">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="out" type="b"/>
    </method>
    <method name="GetPropertyDouble">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="out" type="d"/>
    </method>
    <method name="SetProperty">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="in" type="v"/>
    </method>
    <method name="SetPropertyString">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="in" type="s"/>
    </method>
    <method name="SetPropertyStringList">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="in" type="as"/>
    </method>
    <method name="SetPropertyInteger">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="in" type="i"/>
    </method>
    <method name="SetPropertyBoolean">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="in" type="b"/>
    </method>
    <method name="SetPropertyDouble">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="in" type="d"/>
    </method>
    <method name="RemoveProperty">
      <arg name="key" direction="in" type="s"/>
    </method>
    <method name="GetPropertyType">
      <arg name="key" direction="in" type="s"/>
      <arg name="type" direction="out" type="i"/>
    </method>
    <method name="PropertyExists">
      <arg name="key" direction="in" type="s"/>
      <arg name="does_it_exist" direction="out" type="b"/>
    </method>
    <method name="AddCapability">
      <arg name="capability" direction="in" type="s"/>
    </method>
    <method name="QueryCapability">
      <arg name="capability" direction="in" type="s"/>
      <arg name="does_it_have_capability" direction="out" type="b"/>
    </method>
    <method name="Lock">
      <arg name="reason" direction="in" type="s"/>
      <arg name="acquired_lock" direction="out" type="b"/>
    </method>
    <method name="Unlock">
      <arg name="released_lock" direction="out" type="b"/>
    </method>
    <method name="AcquireInterfaceLock">
      <arg name="interface_name" direction="in" type="s"/>
      <arg name="exclusive" direction="in" type="b"/>
    </method>
    <method name="ReleaseInterfaceLock">
      <arg name="interface_name" direction="in" type="s"/>
    </method>
    <method name="IsCallerLockedOut">
      <arg name="interface_name" direction="in" type="s"/>
      <arg name="caller_sysbus_name" direction="in" type="s"/>
      <arg name="whether_caller_is_locked_out" direction="out" type="b"/>
    </method>
    <method name="IsLockedByOthers">
      <arg name="interface_name" direction="in" type="s"/>
      <arg name="whether_it_is_locked_by_others" direction="out" type="b"/>
    </method>
    <method name="StringListAppend">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="in" type="s"/>
    </method>
    <method name="StringListPrepend">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="in" type="s"/>
    </method>
    <method name="StringListRemove">
      <arg name="key" direction="in" type="s"/>
      <arg name="value" direction="in" type="s"/>
    </method>
    <method name="EmitCondition">
      <arg name="condition_name" direction="in" type="s"/>
      <arg name="condition_details" direction="in" type="s"/>
      <arg name="rc" direction="out" type="b"/>
    </method>
    <method name="Rescan">
      <arg name="call_had_sideeffect" direction="out" type="b"/>
    </method>
    <method name="Reprobe">
      <arg name="call_had_sideeffect" direction="out" type="b"/>
    </method>
    <method name="ClaimInterface">
      <arg name="interface_name" direction="in" type="s"/>
      <arg name="introspection_xml" direction="in" type="s"/>
      <arg name="rc" direction="out" type="b"/>
    </method>
    <method name="AddonIsReady">
      <arg name="rc" direction="out" type="b"/>
    </method>
    <signal name="PropertyModified">
      <arg name="num_updates" type="i"/>
      <arg name="updates" type="a(sbb)"/>
    </signal>
    <signal name="Condition">
      <arg name="cond_name" type="s"/>
      <arg name="cond_details" type="s"/>
    </signal>
    <signal name="InterfaceLockAcquired">
      <arg name="interface_name" type="s"/>
      <arg name="lock_holder" type="s"/>
      <arg name="num_locks" type="i"/>
    </signal>
    <signal name="InterfaceLockReleased">
      <arg name="interface_name" type="s"/>
      <arg name="lock_holder" type="s"/>
      <arg name="num_locks" type="i"/>
    </signal>
  </interface>
</node>

Personal tools