aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2009-08-18 15:12:14 +0000
committerMichael Albinus2009-08-18 15:12:14 +0000
commitba6f7d8640de1f191bee882de5bc029883a901b5 (patch)
treef4833b78f3cb6c6d29929c6f8dc0c59a84e37453
parent997797ae1bf94406e779c9cdd4bec6c2f1d5b2f4 (diff)
downloademacs-ba6f7d8640de1f191bee882de5bc029883a901b5.tar.gz
emacs-ba6f7d8640de1f191bee882de5bc029883a901b5.zip
* net/dbus.el (dbus-init-bus): Declare. Apply it for the :system
and :session buses.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/dbus.el10
2 files changed, 15 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 21851fa7b89..69d02d2a68c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-08-18 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/dbus.el (dbus-init-bus): Declare. Apply it for the :system
4 and :session buses.
5
12009-08-18 Kenichi Handa <handa@m17n.org> 62009-08-18 Kenichi Handa <handa@m17n.org>
2 7
3 * international/ucs-normalize.el (ucs-normalize-version): Changed 8 * international/ucs-normalize.el (ucs-normalize-version): Changed
diff --git a/lisp/net/dbus.el b/lisp/net/dbus.el
index 894d7c63787..c1222a66f66 100644
--- a/lisp/net/dbus.el
+++ b/lisp/net/dbus.el
@@ -34,12 +34,22 @@
34;; option "--without-dbus". Declare used subroutines and variables. 34;; option "--without-dbus". Declare used subroutines and variables.
35(declare-function dbus-call-method "dbusbind.c") 35(declare-function dbus-call-method "dbusbind.c")
36(declare-function dbus-call-method-asynchronously "dbusbind.c") 36(declare-function dbus-call-method-asynchronously "dbusbind.c")
37(declare-function dbus-init-bus "dbusbind.c")
37(declare-function dbus-method-return-internal "dbusbind.c") 38(declare-function dbus-method-return-internal "dbusbind.c")
38(declare-function dbus-method-error-internal "dbusbind.c") 39(declare-function dbus-method-error-internal "dbusbind.c")
39(declare-function dbus-register-signal "dbusbind.c") 40(declare-function dbus-register-signal "dbusbind.c")
40(defvar dbus-debug) 41(defvar dbus-debug)
41(defvar dbus-registered-functions-table) 42(defvar dbus-registered-functions-table)
42 43
44;; Initialize :system and :session buses. This adds their file
45;; descriptors to input_wait_mask, in order to detect incoming
46;; messages immediately.
47;; We must avoid to call the function twice for a bus, because the
48;; DBusWatch will be removed then.
49(when (and (featurep 'dbusbind) (not (featurep 'dbus)))
50 (dbus-init-bus :system)
51 (dbus-init-bus :session))
52
43;; Pacify byte compiler. 53;; Pacify byte compiler.
44(eval-when-compile 54(eval-when-compile
45 (require 'cl)) 55 (require 'cl))