diff options
| author | Michael Albinus | 2011-02-07 10:21:08 +0100 |
|---|---|---|
| committer | Michael Albinus | 2011-02-07 10:21:08 +0100 |
| commit | 1ff98217da213c4b933bbb9e70bf6f18fbcfc0f8 (patch) | |
| tree | e40d6dd7089896674173779bd08d3a43e7a26e61 | |
| parent | 07e52e08b0f120da48c8cd8e6e5bb4ef47f4ec38 (diff) | |
| download | emacs-1ff98217da213c4b933bbb9e70bf6f18fbcfc0f8.tar.gz emacs-1ff98217da213c4b933bbb9e70bf6f18fbcfc0f8.zip | |
* dbus.texi (Bus names): Adapt descriptions for
dbus-list-activatable-names and dbus-list-known-names.
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/dbus.texi | 24 |
2 files changed, 22 insertions, 7 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 51038726130..53109fe7948 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-02-07 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * dbus.texi (Bus names): Adapt descriptions for | ||
| 4 | dbus-list-activatable-names and dbus-list-known-names. | ||
| 5 | |||
| 1 | 2011-02-07 Jay Belanger <jay.p.belanger@gmail.com> | 6 | 2011-02-07 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 7 | ||
| 3 | * calc.texi (Logarithmic Units): New section. | 8 | * calc.texi (Logarithmic Units): New section. |
diff --git a/doc/misc/dbus.texi b/doc/misc/dbus.texi index e50f48dcec1..64d577f4387 100644 --- a/doc/misc/dbus.texi +++ b/doc/misc/dbus.texi | |||
| @@ -132,14 +132,24 @@ There are several basic functions which inspect the buses for | |||
| 132 | registered names. Internally they use the basic interface | 132 | registered names. Internally they use the basic interface |
| 133 | @samp{org.freedesktop.DBus}, which is supported by all objects of a bus. | 133 | @samp{org.freedesktop.DBus}, which is supported by all objects of a bus. |
| 134 | 134 | ||
| 135 | @defun dbus-list-activatable-names | 135 | @defun dbus-list-activatable-names &optional bus |
| 136 | This function returns the D-Bus service names, which can be activated. | 136 | This function returns the D-Bus service names, which can be activated |
| 137 | An activatable service is described in a service registration file. | 137 | for @var{bus}. It must be either the symbol @code{:system} (the |
| 138 | Under GNU/Linux, such files are located at | 138 | default) or the symbol @code{:session}. An activatable service is |
| 139 | @file{/usr/share/dbus-1/services/}. | 139 | described in a service registration file. Under GNU/Linux, such files |
| 140 | are located at @file{/usr/share/dbus-1/system-services/} (for the | ||
| 141 | @code{:system} bus) or @file{/usr/share/dbus-1/services/}. An | ||
| 142 | activatable service is not necessarily registered at @var{bus} at already. | ||
| 140 | 143 | ||
| 141 | The result is a list of strings, which is @code{nil} when there are no | 144 | The result is a list of strings, which is @code{nil} when there are no |
| 142 | activatable service names at all. | 145 | activatable service names at all. Example: |
| 146 | |||
| 147 | @lisp | ||
| 148 | ;; Check, whether the document viewer can be accessed via D-Bus. | ||
| 149 | (member "org.gnome.evince.Daemon" | ||
| 150 | (dbus-list-activatable-names :session)) | ||
| 151 | @end lisp | ||
| 152 | |||
| 143 | @end defun | 153 | @end defun |
| 144 | 154 | ||
| 145 | @defun dbus-list-names bus | 155 | @defun dbus-list-names bus |
| @@ -154,7 +164,7 @@ strings like @samp{org.freedesktop.DBus}. Names starting with | |||
| 154 | @end defun | 164 | @end defun |
| 155 | 165 | ||
| 156 | @defun dbus-list-known-names bus | 166 | @defun dbus-list-known-names bus |
| 157 | Retrieves all services which correspond to a known name in @var{bus}. | 167 | Retrieves all registered services which correspond to a known name in @var{bus}. |
| 158 | A service has a known name if it doesn't start with @samp{:}. The | 168 | A service has a known name if it doesn't start with @samp{:}. The |
| 159 | result is a list of strings, which is @code{nil} when there are no | 169 | result is a list of strings, which is @code{nil} when there are no |
| 160 | known names at all. | 170 | known names at all. |