[telepathy-gabble/master] add straw man debug interface

Dafydd Harries daf at rhydd.org
Wed Jun 3 06:10:51 PDT 2009


---
 extensions/Debug.xml |   69 ++++++++++++++++++++++++++++++++++++++++++++++++++
 extensions/all.xml   |    1 +
 2 files changed, 70 insertions(+), 0 deletions(-)
 create mode 100644 extensions/Debug.xml

diff --git a/extensions/Debug.xml b/extensions/Debug.xml
new file mode 100644
index 0000000..d15d505
--- /dev/null
+++ b/extensions/Debug.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0" ?>
+<node name="/Debug"
+  xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
+  <tp:copyright>Copyright (C) 2009 Collabora Ltd.</tp:copyright>
+  <tp:license xmlns="http://www.w3.org/1999/xhtml">
+    <p>This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.</p>
+
+<p>This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+Lesser General Public License for more details.</p>
+
+<p>You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</p>
+  </tp:license>
+  <interface name="org.freedesktop.Telepathy.Debug">
+
+    <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+      <p>An interface for providing debug messages.
+
+         This interface is primarily provided by one object per
+         service, at the path <tt>/org/freedesktop/Telepathy/debug</tt>.
+      </p>
+    </tp:docstring>
+
+    <property name="Enabled" type="b" access="readwrite">
+      <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+        <p>TRUE if the NewDebugMessage signal should be emitted when a new
+           debug message is generated.</p>
+      </tp:docstring>
+    </property>
+
+    <method name="GetMessages">
+      <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+        <p>Retrieve buffered debug messages.</p>
+      </tp:docstring>
+
+      <arg direction="out" name="messages" type="a(ds)">
+         <tp:docstring>
+          A list of timestamped debug messages.
+        </tp:docstring>
+      </arg>
+    </method>
+
+    <signal name="NewDebugMessage" tp:name-for-bindings="New_Debug_Message">
+      <tp:docstring>
+        Emitted when a debug messages is generated if the Enabled property is
+        set.
+      </tp:docstring>
+
+      <arg name="time" type="d">
+        <tp:docstring>
+          Message timestamp
+        </tp:docstring>
+      </arg>
+      <arg name="message" type="s">
+        <tp:docstring>
+          Message
+        </tp:docstring>
+      </arg>
+    </signal>
+
+  </interface>
+</node>
+<!-- vim:set sw=2 sts=2 et ft=xml: -->
diff --git a/extensions/all.xml b/extensions/all.xml
index 8b30a36..dad3132 100644
--- a/extensions/all.xml
+++ b/extensions/all.xml
@@ -35,6 +35,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA</p>
 <xi:include href="Channel_Future.xml"/>
 <xi:include href="Channel_Type_Streamed_Media_Future.xml"/>
 <xi:include href="Connection_Interface_Location.xml"/>
+<xi:include href="Debug.xml"/>
 <xi:include href="OLPC_Buddy_Info.xml"/>
 <xi:include href="OLPC_Activity_Properties.xml"/>
 <xi:include href="OLPC_Gadget.xml"/>
-- 
1.5.6.5




More information about the telepathy-commits mailing list