aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2011-02-07 10:21:08 +0100
committerMichael Albinus2011-02-07 10:21:08 +0100
commit1ff98217da213c4b933bbb9e70bf6f18fbcfc0f8 (patch)
treee40d6dd7089896674173779bd08d3a43e7a26e61
parent07e52e08b0f120da48c8cd8e6e5bb4ef47f4ec38 (diff)
downloademacs-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/ChangeLog5
-rw-r--r--doc/misc/dbus.texi24
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 @@
12011-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
12011-02-07 Jay Belanger <jay.p.belanger@gmail.com> 62011-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
132registered names. Internally they use the basic interface 132registered 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
136This function returns the D-Bus service names, which can be activated. 136This function returns the D-Bus service names, which can be activated
137An activatable service is described in a service registration file. 137for @var{bus}. It must be either the symbol @code{:system} (the
138Under GNU/Linux, such files are located at 138default) or the symbol @code{:session}. An activatable service is
139@file{/usr/share/dbus-1/services/}. 139described in a service registration file. Under GNU/Linux, such files
140are located at @file{/usr/share/dbus-1/system-services/} (for the
141@code{:system} bus) or @file{/usr/share/dbus-1/services/}. An
142activatable service is not necessarily registered at @var{bus} at already.
140 143
141The result is a list of strings, which is @code{nil} when there are no 144The result is a list of strings, which is @code{nil} when there are no
142activatable service names at all. 145activatable 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
157Retrieves all services which correspond to a known name in @var{bus}. 167Retrieves all registered services which correspond to a known name in @var{bus}.
158A service has a known name if it doesn't start with @samp{:}. The 168A service has a known name if it doesn't start with @samp{:}. The
159result is a list of strings, which is @code{nil} when there are no 169result is a list of strings, which is @code{nil} when there are no
160known names at all. 170known names at all.