summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorOlivier Andrieu <oliv__a@users.sourceforge.net>2004-06-28 21:55:15 +0000
committerOlivier Andrieu <oliv__a@users.sourceforge.net>2004-06-28 21:55:15 +0000
commit2779cbf9766859d9fa6f693eb75732d226c496cd (patch)
tree59c59ee089aff519be3a2afa88664f726f2ff0cb /doc
parent5d58a040185bf266be2119c92383ae6c726c27e3 (diff)
* bus/driver.c (bus_driver_handle_get_connection_unix_user)
* dbus/bus.c (dbus_bus_get_unix_user) * doc/dbus-specification.xml: implement GetConnectionUnixUser method of org.freedesktop.DBus interface. * bus/dispatch.c: test case
Diffstat (limited to 'doc')
-rw-r--r--doc/dbus-specification.xml51
1 files changed, 51 insertions, 0 deletions
diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml
index 94f72bf8..f0d1727e 100644
--- a/doc/dbus-specification.xml
+++ b/doc/dbus-specification.xml
@@ -2497,6 +2497,57 @@
</para>
</sect3>
+ <sect3 id="bus-messages-get-connection-unix-user">
+ <title><literal>org.freedesktop.DBus.GetConnectionUnixUser</literal></title>
+ <para>
+ As a method:
+ <programlisting>
+ UINT32 GetConnectionUnixUser (in STRING connection_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 of the connection/service to query</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>unix user id</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ Returns the unix uid of the process connected to the server. If unable to
+ determine it, a <literal>org.freedesktop.DBus.Error.Failed</literal>
+ error is returned.
+ </para>
+ </sect3>
+
<sect3 id="bus-messages-out-of-memory">
<title><literal>org.freedesktop.DBus.Error.NoMemory</literal></title>
<para>