]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
spec: Move ReleaseName API description to list of methods
authorSimon McVittie <smcv@collabora.com>
Wed, 31 May 2017 15:17:02 +0000 (16:17 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 31 May 2017 15:25:59 +0000 (16:25 +0100)
Tom Gundersen pointed out that RequestName, ReleaseName and
ListQueuedOwners were documented in their own section instead of being
put together with the other method calls, which makes it more difficult
to apply changes consistently across all methods.

I'm moving them one at a time to make the changes reviewable, since
the diff resulting from moving all three as a unit is too large to
review sensibly.

Signed-off-by: Simon McVittie <smcv@collabora.com>
doc/dbus-specification.xml

index b9e2c02b5bca4b25333cf3cba9e1838116cc4051..45a475743e359558504b544ffc6a62716228373a 100644 (file)
         <literal>org.freedesktop.DBus.ReleaseName</literal> message.
       </para>
 
-       <sect3 id="bus-messages-release-name">
-        <title><literal>org.freedesktop.DBus.ReleaseName</literal></title>
-        <para>
-          As a method:
-          <programlisting>
-            UINT32 ReleaseName (in STRING name)
-          </programlisting>
-          Message arguments:
-          <informaltable>
-            <tgroup cols="3">
-              <thead>
-                <row>
-                  <entry>Argument</entry>
-                  <entry>Type</entry>
-                  <entry>Description</entry>
-                </row>
-              </thead>
-              <tbody>
-                <row>
-                  <entry>0</entry>
-                  <entry>STRING</entry>
-                  <entry>Name to release</entry>
-                </row>
-              </tbody>
-            </tgroup>
-          </informaltable>
-          Reply arguments:
-          <informaltable>
-            <tgroup cols="3">
-              <thead>
-                <row>
-                  <entry>Argument</entry>
-                  <entry>Type</entry>
-                  <entry>Description</entry>
-                </row>
-              </thead>
-              <tbody>
-                <row>
-                  <entry>0</entry>
-                  <entry>UINT32</entry>
-                  <entry>Return value</entry>
-                </row>
-              </tbody>
-            </tgroup>
-          </informaltable>
-        </para>
-        <para>
-          This method call should be sent to
-          <literal>org.freedesktop.DBus</literal> and asks the message bus to
-          release the method caller's claim to the given name. If the caller is
-          the primary owner, a new primary owner will be selected from the
-          queue if any other owners are waiting. If the caller is waiting in
-          the queue for the name, the caller will removed from the queue and
-          will not be made an owner of the name if it later becomes available.
-          If there are no other owners in the queue for the name, it will be
-          removed from the bus entirely.
-
-          The return code can be one of the following values:
-
-          <informaltable>
-            <tgroup cols="3">
-              <thead>
-                <row>
-                  <entry>Conventional Name</entry>
-                  <entry>Value</entry>
-                  <entry>Description</entry>
-                </row>
-              </thead>
-              <tbody>
-                <row>
-                  <entry>DBUS_RELEASE_NAME_REPLY_RELEASED</entry>
-                  <entry>1</entry> <entry>The caller has released his claim on
-                  the given name. Either the caller was the primary owner of
-                  the name, and the name is now unused or taken by somebody
-                  waiting in the queue for the name, or the caller was waiting
-                  in the queue for the name and has now been removed from the
-                  queue.</entry>
-                </row>
-                <row>
-                  <entry>DBUS_RELEASE_NAME_REPLY_NON_EXISTENT</entry>
-                  <entry>2</entry>
-                  <entry>The given name does not exist on this bus.</entry>
-                </row>
-                <row>
-                  <entry>DBUS_RELEASE_NAME_REPLY_NOT_OWNER</entry>
-                  <entry>3</entry>
-                  <entry>The caller was not the primary owner of this name,
-                  and was also not waiting in the queue to own this name.</entry>
-                </row>
-              </tbody>
-            </tgroup>
-          </informaltable>
-        </para>
-       </sect3>
-
        <sect3 id="bus-messages-list-queued-owners">
         <title><literal>org.freedesktop.DBus.ListQueuedOwners</literal></title>
         <para>
         </para>
        </sect3>
 
+       <sect3 id="bus-messages-release-name">
+        <title><literal>org.freedesktop.DBus.ReleaseName</literal></title>
+        <para>
+          As a method:
+          <programlisting>
+            UINT32 ReleaseName (in STRING name)
+          </programlisting>
+          Message arguments:
+          <informaltable>
+            <tgroup cols="3">
+              <thead>
+                <row>
+                  <entry>Argument</entry>
+                  <entry>Type</entry>
+                  <entry>Description</entry>
+                </row>
+              </thead>
+              <tbody>
+                <row>
+                  <entry>0</entry>
+                  <entry>STRING</entry>
+                  <entry>Name to release</entry>
+                </row>
+              </tbody>
+            </tgroup>
+          </informaltable>
+          Reply arguments:
+          <informaltable>
+            <tgroup cols="3">
+              <thead>
+                <row>
+                  <entry>Argument</entry>
+                  <entry>Type</entry>
+                  <entry>Description</entry>
+                </row>
+              </thead>
+              <tbody>
+                <row>
+                  <entry>0</entry>
+                  <entry>UINT32</entry>
+                  <entry>Return value</entry>
+                </row>
+              </tbody>
+            </tgroup>
+          </informaltable>
+        </para>
+        <para>
+          This method call should be sent to
+          <literal>org.freedesktop.DBus</literal> and asks the message bus to
+          release the method caller's claim to the given name. If the caller is
+          the primary owner, a new primary owner will be selected from the
+          queue if any other owners are waiting. If the caller is waiting in
+          the queue for the name, the caller will removed from the queue and
+          will not be made an owner of the name if it later becomes available.
+          If there are no other owners in the queue for the name, it will be
+          removed from the bus entirely.
+
+          The return code can be one of the following values:
+
+          <informaltable>
+            <tgroup cols="3">
+              <thead>
+                <row>
+                  <entry>Conventional Name</entry>
+                  <entry>Value</entry>
+                  <entry>Description</entry>
+                </row>
+              </thead>
+              <tbody>
+                <row>
+                  <entry>DBUS_RELEASE_NAME_REPLY_RELEASED</entry>
+                  <entry>1</entry> <entry>The caller has released his claim on
+                  the given name. Either the caller was the primary owner of
+                  the name, and the name is now unused or taken by somebody
+                  waiting in the queue for the name, or the caller was waiting
+                  in the queue for the name and has now been removed from the
+                  queue.</entry>
+                </row>
+                <row>
+                  <entry>DBUS_RELEASE_NAME_REPLY_NON_EXISTENT</entry>
+                  <entry>2</entry>
+                  <entry>The given name does not exist on this bus.</entry>
+                </row>
+                <row>
+                  <entry>DBUS_RELEASE_NAME_REPLY_NOT_OWNER</entry>
+                  <entry>3</entry>
+                  <entry>The caller was not the primary owner of this name,
+                  and was also not waiting in the queue to own this name.</entry>
+                </row>
+              </tbody>
+            </tgroup>
+          </informaltable>
+        </para>
+       </sect3>
+
       <sect3 id="bus-messages-list-names">
         <title><literal>org.freedesktop.DBus.ListNames</literal></title>
         <para>