[Telepathy-commits] [telepathy-spec/master] Client: alter recommendation for stuffing unique name into well-known name so it's actually valid

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Sep 23 09:28:34 PDT 2008


I have no idea why the D-Bus specification allows components to start with a
digit in unique names only (as opposed to in neither or both flavours of bus
name), but it does.
---
 spec/Client.xml |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/spec/Client.xml b/spec/Client.xml
index da3cbc0..da3cfbe 100644
--- a/spec/Client.xml
+++ b/spec/Client.xml
@@ -54,15 +54,19 @@
       </tp:rationale>
 
       <p>The client name, <em>clientname</em>, MUST be a non-empty string of
-        ASCII digits, letters, dots and/or underscores, starting with a letter.
-        For non-activatable services, it MAY contain a part that is generated
-        per instance at runtime.</p>
+        ASCII digits, letters, dots and/or underscores, starting with a
+        letter, and without sets of two consecutive dots or a dot
+        followed by a digit. For non-activatable services, it MAY contain a
+        part that is generated per instance at runtime.</p>
 
       <tp:rationale>
         <p>If each of a client Foo's instances should be able to manipulate
           channels separately, the instance with unique name
-          <code>:1.25</code> could request a well-known name like
-          <code>org.freedesktop.Telepathy.Client.Foo.1.25</code>.</p>
+          <code>:1.25</code> might request a well-known name like
+          <code>org.freedesktop.Telepathy.Client.Foo._1._25</code>.</p>
+
+        <p>(Note that well-known bus-name components may not start with a
+          digit, so o.f.T.Client.Foo.1.25 would not be acceptable.)</p>
       </tp:rationale>
 
       <p>Each Client MUST export an object whose object path may be
-- 
1.5.6.5




More information about the Telepathy-commits mailing list