hal: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Mon Apr 2 20:27:47 PDT 2007


 doc/spec/hal-spec-interfaces.xml |   49 +++++++++++++++++++++++++++++++++++++
 doc/spec/hal-spec-properties.xml |   51 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)

New commits:
diff-tree 83a0e8377baec901632c67cdd06b3344501bb872 (from ef656049d054186308372532b55aa440b9ed0c36)
Author: David Zeuthen <davidz at redhat.com>
Date:   Mon Apr 2 23:27:41 2007 -0400

    document the RF killswitch namespace and interface

diff --git a/doc/spec/hal-spec-interfaces.xml b/doc/spec/hal-spec-interfaces.xml
index 1ad525b..a4746ca 100644
--- a/doc/spec/hal-spec-interfaces.xml
+++ b/doc/spec/hal-spec-interfaces.xml
@@ -1140,6 +1140,55 @@ $ dbus-send --system --print-reply --des
 
   </sect1>
 
+  <sect1 id="interface-device-killswitch">
+    <title>org.freedesktop.Hal.Device.KillSwitch interface</title>
+    <para>
+      This interface provides a mechanism for both querying whether a
+      radio is on as well as turning it on and off.  The following
+      methods are available:
+    </para>
+
+    <informaltable>
+      <tgroup cols="2">
+        <thead>
+          <row>
+            <entry>Method</entry>
+            <entry>Returns</entry>
+            <entry>Parameters</entry>
+            <entry>Throws</entry>
+            <entry>Description</entry>
+          </row>
+        </thead>
+        <tbody>
+          <row>
+            <entry>GetPower</entry>
+            <entry>Int</entry>
+            <entry></entry>
+            <entry></entry>
+            <entry>
+              Returns 1 if, and only if, the power is on.
+            </entry>
+          </row>
+          <row>
+            <entry>SetPower</entry>
+            <entry></entry>
+            <entry>Bool</entry>
+            <entry></entry>
+            <entry>
+              Set the power of the radio.
+            </entry>
+          </row>
+
+        </tbody>
+      </tgroup>
+    </informaltable>
+
+    <para>
+      This interface does not emit any signals.
+    </para>
+
+  </sect1>
+
 <!--
   <sect1 id="interface-device-foo">
     <title>org.freedesktop.Hal.Device.Foo interface</title>
diff --git a/doc/spec/hal-spec-properties.xml b/doc/spec/hal-spec-properties.xml
index e4e58f8..0965971 100644
--- a/doc/spec/hal-spec-properties.xml
+++ b/doc/spec/hal-spec-properties.xml
@@ -6109,6 +6109,57 @@ org.freedesktop.Hal.Device.Volume.method
         </tgroup>
       </informaltable>
     </sect2>
+    <sect2 id="device-properties-killswitch">
+      <title>
+        killswitch namespace
+      </title>
+      <para>
+        Device objects with the capability <literal>killswitch</literal>
+        represent switches to turn a radio on and off. See also <xref linkend="interface-device-killswitch"/>.
+      </para>
+      <informaltable>
+        <tgroup cols="2">
+          <thead>
+            <row>
+              <entry>Key (type)</entry>
+              <entry>Values</entry>
+              <entry>Mandatory</entry>
+              <entry>Description</entry>
+            </row>
+          </thead>
+          <tbody>
+            <row>
+              <entry>
+                <literal>killswitch.type</literal> (string)
+              </entry>
+              <entry></entry>
+              <entry>Yes</entry>
+              <entry>Type of the kill switch</entry>
+            </row>
+            <row>
+              <entry></entry>
+              <entry>wlan</entry>
+              <entry></entry>
+              <entry>Kill switch is for turning Wireless networking on/off</entry>
+            </row>
+            <row>
+              <entry></entry>
+              <entry>bluetooth</entry>
+              <entry></entry>
+              <entry>Kill switch is for turning Bluetooth on/off</entry>
+            </row>
+            <row>
+              <entry>
+                <literal>killswitch.access_method</literal> (string)
+              </entry>
+              <entry></entry>
+              <entry>Yes</entry>
+              <entry>How HAL should program the switch</entry>
+            </row>
+          </tbody>
+        </tgroup>
+      </informaltable>
+    </sect2>
   </sect1>
 
   <sect1 id="properties-misc">


More information about the hal-commit mailing list