diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-05-31 15:50:42 +0200 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-06-07 16:18:56 +0200 |
commit | 490816714ef5a4b13a9e1eb779d9990fb78b5d15 (patch) | |
tree | a7972f7a4590059e98f7cd11d9d47b19959904d5 | |
parent | e0e70eb6b76b637518d8a1a0c7e292e6a1615ec0 (diff) |
Remove InspectHandles
Identifiers are always given together with handles, so it must never
be needed to inspect an handle.
-rw-r--r-- | spec/Account.xml | 6 | ||||
-rw-r--r-- | spec/Channel.xml | 35 | ||||
-rw-r--r-- | spec/Channel_Interface_Group1.xml | 4 | ||||
-rw-r--r-- | spec/Channel_Type_Room_List1.xml | 3 | ||||
-rw-r--r-- | spec/Channel_Type_Text.xml | 8 | ||||
-rw-r--r-- | spec/Connection.xml | 43 |
6 files changed, 9 insertions, 90 deletions
diff --git a/spec/Account.xml b/spec/Account.xml index b700b8fa..0df5b0b6 100644 --- a/spec/Account.xml +++ b/spec/Account.xml @@ -667,10 +667,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. tp:name-for-bindings="Normalized_Name"> <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>The normalized user ID of the local user on this account (i.e. the - string returned when the <tp:dbus-ref - namespace="im.telepathy1.Connection">InspectHandles</tp:dbus-ref> - method is called on the value of the <tp:dbus-ref - namespace="im.telepathy1.Connection">SelfHandle</tp:dbus-ref> + value of the <tp:dbus-ref + namespace="im.telepathy1.Connection">SelfID</tp:dbus-ref> property for an active connection).</p> <p>It is unspecified whether this user ID is globally unique.</p> diff --git a/spec/Channel.xml b/spec/Channel.xml index b688397b..136b0776 100644 --- a/spec/Channel.xml +++ b/spec/Channel.xml @@ -109,22 +109,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</ room, etc. with which this channel communicates), or the empty string if the TargetHandle is 0.</p> - <tp:rationale> - <p>The presence of this property avoids the following race - condition:</p> - - <ul> - <li>New channel C is signalled with target handle T</li> - <li>Client calls <tp:dbus-ref - namespace="im.telepathy1.Connection">InspectHandles</tp:dbus-ref>(CONTACT, - [T])</li> - <li>Channel C closes, removing the last reference to handle T</li> - <li><tp:dbus-ref - namespace="im.telepathy1.Connection">InspectHandles</tp:dbus-ref>(CONTACT, - [T]) returns an error</li> - </ul> - </tp:rationale> - <p>If this is present in a channel request, <tp:member-ref>TargetHandleType</tp:member-ref> MUST be present and not Handle_Type_None, and @@ -303,25 +287,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</ <tp:member-ref>InitiatorHandle</tp:member-ref> property (i.e. the initiator's identifier in the IM protocol).</p> - <tp:rationale> - <p>The presence of this property avoids the following race - condition:</p> - - <ul> - <li>New Call channel C is signalled with initiator - handle I</li> - <li>Client calls <tp:dbus-ref - namespace="im.telepathy1.Connection">InspectHandles</tp:dbus-ref>(CONTACT, - [I])</li> - <li>Channel C closes, removing the last reference to handle I</li> - <li><tp:dbus-ref - namespace="im.telepathy1.Connection">InspectHandles</tp:dbus-ref>(CONTACT, - [I]) returns an error</li> - <li>Client can indicate that a call was missed, but not who - called!</li> - </ul> - </tp:rationale> - <p>It does not make sense for this property to be in channel requests - the initiator will always be the local user - so it MUST NOT be accepted.</p> diff --git a/spec/Channel_Interface_Group1.xml b/spec/Channel_Interface_Group1.xml index ca2201d2..1204c322 100644 --- a/spec/Channel_Interface_Group1.xml +++ b/spec/Channel_Interface_Group1.xml @@ -614,9 +614,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</ </tp:member> <tp:member type="s" name="Identifier"> <tp:docstring> - The same string that would be returned by <tp:dbus-ref - namespace="im.telepathy1.Connection">InspectHandles</tp:dbus-ref> - for this handle. + The normalized contact identifier. </tp:docstring> </tp:member> </tp:mapping> diff --git a/spec/Channel_Type_Room_List1.xml b/spec/Channel_Type_Room_List1.xml index f462e3a0..4b5ccd66 100644 --- a/spec/Channel_Type_Room_List1.xml +++ b/spec/Channel_Type_Room_List1.xml @@ -76,8 +76,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</ <dl> <dt>handle-name (s)</dt> - <dd>The identifier of the room (as would be returned by - <tp:dbus-ref namespace="im.telepathy1.Connection">InspectHandles</tp:dbus-ref>)</dd> + <dd>The identifier of the room</dd> <dt>name (s)</dt> <dd>The human-readable name of the room if different from the handle</dd> diff --git a/spec/Channel_Type_Text.xml b/spec/Channel_Type_Text.xml index b78c2c3d..b50beb80 100644 --- a/spec/Channel_Type_Text.xml +++ b/spec/Channel_Type_Text.xml @@ -603,11 +603,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</ who sent the message could not be determined.</dd> <dt>message-sender-id (s)</dt> - <dd>The identifier of the contact who sent the message, - i.e. the result of calling <tp:dbus-ref - namespace="imt1.Connection">InspectHandles</tp:dbus-ref> - on <code>message-sender</code>. If omitted, clients MUST - fall back to looking at <code>message-sender</code>.</dd> + <dd>The identifier of the contact who sent the message. If empty or + omitted, the contact who sent the message could not be + determined.</dd> <dt>sender-nickname (s)</dt> <dd>The nickname chosen by the sender of the message, which can be diff --git a/spec/Connection.xml b/spec/Connection.xml index a20d9f2c..a3bf83e7 100644 --- a/spec/Connection.xml +++ b/spec/Connection.xml @@ -145,45 +145,6 @@ USA.</p> <tp:added version="0.19.2"/> </property> - <method name="InspectHandles" tp:name-for-bindings="Inspect_Handles"> - <arg direction="in" name="Handle_Type" type="u" tp:type="Handle_Type"> - <tp:docstring> - The type of handle to be inspected - </tp:docstring> - </arg> - - <arg direction="in" name="Handles" type="au" tp:type="Handle[]"> - <tp:docstring> - An array of integer handles of this type - </tp:docstring> - </arg> - - <arg direction="out" type="as" name="Identifiers"> - <tp:docstring> - An array of identifiers corresponding to the given handles, in the same order. - </tp:docstring> - </arg> - - <tp:docstring> - Return a string representation for a number of handles of a given - type. - </tp:docstring> - - <tp:possible-errors> - <tp:error name="im.telepathy1.Error.Disconnected"/> - <tp:error name="im.telepathy1.Error.InvalidArgument"> - <tp:docstring> - The handle type is invalid - </tp:docstring> - </tp:error> - <tp:error name="im.telepathy1.Error.InvalidHandle"> - <tp:docstring> - One of the given handles is not valid - </tp:docstring> - </tp:error> - </tp:possible-errors> - </method> - <tp:enum name="Handle_Type" type="u"> <tp:enumvalue suffix="None" value="0"> <tp:docstring> @@ -586,8 +547,8 @@ USA.</p> <tp:contact-attribute name="contact-id" type="s"> <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> - <p>The same string that would be returned by - <tp:member-ref>InspectHandles</tp:member-ref>. As a special case, + <p>The normalized contact's identifier. Not necessarily the same string + as passed to GetContactByID. As a special case, this is always present in the result of <tp:dbus-ref namespace="im.telepathy1.Connection.Interface.Contacts">GetContactAttributes</tp:dbus-ref>, whether it was explicitly requested or not.</p> |