summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-10-16 13:10:53 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-10-16 13:10:53 +0000
commit48decafb1eb8d6d8f17da3e148dc164d8e46e323 (patch)
treec02da6682a082ba3057e7bdacfd6537a504b67dc
parent7503a4c3eaf1b840640796b3bb063c60f4a4731d (diff)
Define and use Alias_Pair, Alias_Map
-rw-r--r--spec/Connection_Interface_Aliasing.xml20
1 files changed, 18 insertions, 2 deletions
diff --git a/spec/Connection_Interface_Aliasing.xml b/spec/Connection_Interface_Aliasing.xml
index 6aa79d15..730240fe 100644
--- a/spec/Connection_Interface_Aliasing.xml
+++ b/spec/Connection_Interface_Aliasing.xml
@@ -20,8 +20,24 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
</tp:license>
<interface name="org.freedesktop.Telepathy.Connection.Interface.Aliasing">
<tp:requires interface="org.freedesktop.Telepathy.Connection"/>
+
+ <tp:mapping name="Alias_Map" array-name="">
+ <tp:docstring>A dictionary whose keys are contact handles and whose
+ values are aliases.</tp:docstring>
+ <tp:member type="u" tp:type="Contact_Handle" name="Handle"/>
+ <tp:member type="s" name="Alias"/>
+ </tp:mapping>
+
+ <tp:struct name="Alias_Pair" array-name="Alias_Pair_List">
+ <tp:docstring>A pair (contact handle, alias) as seen in the AliasesChanged
+ signal.</tp:docstring>
+ <tp:member type="u" tp:type="Contact_Handle" name="Handle"/>
+ <tp:member type="s" name="Alias"/>
+ </tp:struct>
+
<signal name="AliasesChanged">
- <arg name="aliases" type="a(us)">
+ <arg name="aliases" type="a(us)" tp:type="Alias_Pair[]">
+ <!-- FIXME: if we break API, this could be an Alias_Map, a{us} -->
<tp:docstring xmlns="http://www.w3.org/1999/xhtml">
An array containing structs of:
<ul>
@@ -88,7 +104,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
</tp:possible-errors>
</method>
<method name="SetAliases">
- <arg direction="in" name="aliases" type="a{us}">
+ <arg direction="in" name="aliases" type="a{us}" tp:type="Alias_Map">
<tp:docstring>
A dictionary mapping integer handles of contacts
to strings of the new alias to set.