aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net
diff options
context:
space:
mode:
authorMichael Albinus2011-02-07 09:01:15 +0100
committerMichael Albinus2011-02-07 09:01:15 +0100
commit07e52e08b0f120da48c8cd8e6e5bb4ef47f4ec38 (patch)
tree26a530f066c1bebf1e6c55a4c3fce8876a39759a /lisp/net
parentb19beacc5491758e57e2afb890aa9fdd696a9e0e (diff)
downloademacs-07e52e08b0f120da48c8cd8e6e5bb4ef47f4ec38.tar.gz
emacs-07e52e08b0f120da48c8cd8e6e5bb4ef47f4ec38.zip
* net/dbus.el (dbus-list-activatable-names): Add optional argument BUS.
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/dbus.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/net/dbus.el b/lisp/net/dbus.el
index 43215003ef7..05c7af2a8c3 100644
--- a/lisp/net/dbus.el
+++ b/lisp/net/dbus.el
@@ -506,13 +506,14 @@ well formed."
506 506
507;;; D-Bus registered names. 507;;; D-Bus registered names.
508 508
509(defun dbus-list-activatable-names () 509(defun dbus-list-activatable-names (&optional bus)
510 "Return the D-Bus service names which can be activated as list. 510 "Return the D-Bus service names which can be activated as list.
511The result is a list of strings, which is `nil' when there are no 511If BUS is left nil, `:system' is assumed. The result is a list
512activatable service names at all." 512of strings, which is `nil' when there are no activatable service
513names at all."
513 (dbus-ignore-errors 514 (dbus-ignore-errors
514 (dbus-call-method 515 (dbus-call-method
515 :system dbus-service-dbus 516 (or bus :system) dbus-service-dbus
516 dbus-path-dbus dbus-interface-dbus "ListActivatableNames"))) 517 dbus-path-dbus dbus-interface-dbus "ListActivatableNames")))
517 518
518(defun dbus-list-names (bus) 519(defun dbus-list-names (bus)