From 2e61875728deca49a96e2db52275f3a5e24bb59b Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sun, 26 Sep 2010 20:05:11 +0200 Subject: [PATCH] Added documentation for autolaunch transport. --- doc/dbus-specification.xml | 124 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 119 insertions(+), 5 deletions(-) diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml index 69be6fe..d675cef 100644 --- a/doc/dbus-specification.xml +++ b/doc/dbus-specification.xml @@ -7,8 +7,8 @@
D-Bus Specification - Version 0.14 - May 12, 2010 + Version 0.15 + September 25, 2010 Havoc @@ -2598,10 +2598,124 @@ + + Autolaunch + The autolaunch transport provides a way for dbus clients to autodetect + a running dbus session bus and to autolaunch a session bus if not present. + + + Server Address Format + + Autolaunch addresses uses the "autolaunch:" prefix and support the + following key/value pairs: + + + + + + Name + Values + Description + + + + + scope + (string) + scope of autolaunch (Windows only) + + + + "install-path" - limit session bus to dbus installation path. + The dbus installation path is determined from the location of + the shared dbus library. If the library is located in a 'bin' + subdirectory the installation root is the directory above, + otherwise the directory where the library lives is taken as + installation root. + + <install-root>/bin/[lib]dbus-1.dll + <install-root>/[lib]dbus-1.dll + + + + + + other values - specify dedicated session bus like 'release', + 'debug' or other + + + + + + + + + + + Unix implementation notes + + [FIXME add unix notes ] + + + + Windows implementation notes + + On start, the server opens a transport, creates a mutex and a shared + memory section containing the related session bus address. This mutex will be + inspected by the dbus client library to detect a running dbus session bus. + The access to the mutex and the shared memory section are protected by a + global lock named "UniqueDBusInitMutex". + + + The mutex and shared memory section name depends on the value of the scope + attribute and are listed in the following table: + + + + + + Scope Attribute Values + Mutex Name + Shared Memory Section Name + Description + + + + + not defined or empty + cDBusDaemonMutex + DBusDaemonAddressInfo + + + + "install-path" + cDBusDaemonMutex-<sha1-hash> + DBusDaemonAddressInfo-<sha1-hash> + The term <sha1-hash> is a sha1 hash string build from the + dbus installation root, which is specified in . + Before creating the sha1 hash the installation root string is converted + to lowercase. + + + any other value + cDBusDaemonMutex-<scope> + DBusDaemonAddressInfo-<scope> + The term <scope> is directly taken from the value of the + scope attribute. + + + + + + In the recent implementation the autolaunch transport uses a tcp transport + on localhost with a port choosen from the operating system. This detail may + change in the future. + + + + - - - + Naming Conventions -- 2.7.4