From 54b943432c7c947db88066751dd36a372cc9a618 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 18 Jun 2007 19:32:51 +0000 Subject: 2007-06-18 Havoc Pennington * doc/dbus-specification.xml: document org.freedesktop.DBus.GetId() * bus/driver.c (bus_driver_handle_get_id): implement org.freedesktop.DBus.GetId() * bus/bus.c (bus_context_new): generate a unique ID for each bus context * dbus/dbus-connection.c (dbus_connection_get_server_id): new function * dbus/dbus-bus.c (dbus_bus_get_id): new function * dbus/dbus-server.c (dbus_server_get_id): new function --- doc/dbus-specification.xml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'doc') diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml index 878c2fa4..39bb7723 100644 --- a/doc/dbus-specification.xml +++ b/doc/dbus-specification.xml @@ -3824,6 +3824,42 @@ + + <literal>org.freedesktop.DBus.GetId</literal> + + As a method: + + GetId (out STRING id) + + Reply arguments: + + + + + Argument + Type + Description + + + + + 0 + STRING + Unique ID identifying the bus daemon + + + + + Gets the unique ID of the bus. The unique ID here is shared among all addresses the + bus daemon is listening on (TCP, UNIX domain socket, etc.) and its format is described in + . Each address the bus is listening on also has its own unique + ID, as described in . The per-bus and per-address IDs are not related. + There is also a per-machine ID, described in and returned + by org.freedesktop.DBus.Peer.GetMachineId(). + For a desktop session bus, the bus ID can be used as a way to uniquely identify a user's session. + + + -- cgit