[Telepathy-commits] [telepathy-gabble/master] add an Activity tp:struct type

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Sep 26 10:02:16 PDT 2008


20080609134026-7fe3f-1a4b2e936f92aff819325694773fef5cdfe4a182.gz
---
 extensions/OLPC_Buddy_Info.xml |   18 +++++++++++++++---
 extensions/all.xml             |    5 +++++
 2 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/extensions/OLPC_Buddy_Info.xml b/extensions/OLPC_Buddy_Info.xml
index d312a73..339da95 100644
--- a/extensions/OLPC_Buddy_Info.xml
+++ b/extensions/OLPC_Buddy_Info.xml
@@ -77,8 +77,20 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA</p>
       </tp:docstring>
     </signal>
 
+
+   <tp:struct name="Activity" array-name="Activity_List">
+      <tp:docstring>A struct containing:
+          <ul>
+            <li>the identifier of the activity</li>
+            <li>the room handle of the activity channel</li>
+          </ul>
+        </tp:docstring>
+      <tp:member type="s" name="id"/>
+      <tp:member type="u" tp:type="Room_Handle" name="room"/>
+    </tp:struct>
+
     <method name="SetActivities">
-      <arg direction="in" name="activities" type="a(su)">
+      <arg direction="in" name="activities" type="a(su)" tp:type="Activity[]">
         <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
           An array of structs containing:
           <ul>
@@ -102,7 +114,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA</p>
           An integer handle for the contact whose activities are to be returned
         </tp:docstring>
       </arg>
-      <arg direction="out" name="activities" type="a(su)">
+      <arg direction="out" name="activities" type="a(su)" tp:type="Activity[]">
         <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
           An array of structs containing:
           <ul>
@@ -126,7 +138,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA</p>
           An integer handle representing the contact
         </tp:docstring>
       </arg>
-      <arg name="activities" type="a(su)">
+      <arg name="activities" type="a(su)" tp:type="Activity[]">
         <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
           An array of structs containing:
           <ul>
diff --git a/extensions/all.xml b/extensions/all.xml
index 8ad0fe8..440a7fb 100644
--- a/extensions/all.xml
+++ b/extensions/all.xml
@@ -22,6 +22,11 @@ License along with this library; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA</p>
 </tp:license>
 
+<tp:generic-types>
+  <tp:external-type name="Room_Handle" type="u"
+    from="Telepathy specification"/>
+</tp:generic-types>
+
 <xi:include href="Channel_Bundle.xml"/>
 <xi:include href="Channel_Future.xml"/>
 <xi:include href="Connection_Interface_Requests.xml"/>
-- 
1.5.6.5




More information about the Telepathy-commits mailing list