aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Colascione2014-02-20 20:32:31 -0800
committerDaniel Colascione2014-02-20 20:32:31 -0800
commit4819842050c3885e1d8aa33374370ea707490f5c (patch)
tree0b10a2b23999adcc709d6a8efd30c43703e89c3d /src
parente48983a694b2c72c6226a75e294efbe5de69bf13 (diff)
parent146a4cf20237685a47cb3e8e85b85d63d4dff704 (diff)
downloademacs-4819842050c3885e1d8aa33374370ea707490f5c.tar.gz
emacs-4819842050c3885e1d8aa33374370ea707490f5c.zip
Improve dbus error handling; detect bus failure
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/dbusbind.c11
2 files changed, 11 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4bb47197106..05fccace771 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12014-02-21 Daniel Colascione <dancol@dancol.org>
2
3 * dbusbind.c: Rename dbus-init-bus to dbus-init-bus-1.
4
12014-02-20 Eli Zaretskii <eliz@gnu.org> 52014-02-20 Eli Zaretskii <eliz@gnu.org>
2 6
3 * xdisp.c (init_iterator): Don't dereference a bogus face 7 * xdisp.c (init_iterator): Don't dereference a bogus face
diff --git a/src/dbusbind.c b/src/dbusbind.c
index 1c386f02c90..460733c7239 100644
--- a/src/dbusbind.c
+++ b/src/dbusbind.c
@@ -42,7 +42,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
42 42
43 43
44/* Subroutines. */ 44/* Subroutines. */
45static Lisp_Object Qdbus_init_bus; 45static Lisp_Object Qdbus_init_bus_1;
46static Lisp_Object Qdbus_get_unique_name; 46static Lisp_Object Qdbus_get_unique_name;
47static Lisp_Object Qdbus_message_internal; 47static Lisp_Object Qdbus_message_internal;
48 48
@@ -1121,9 +1121,12 @@ xd_close_bus (Lisp_Object bus)
1121 return; 1121 return;
1122} 1122}
1123 1123
1124DEFUN ("dbus-init-bus", Fdbus_init_bus, Sdbus_init_bus, 1, 2, 0, 1124DEFUN ("dbus-init-bus-1", Fdbus_init_bus_1, Sdbus_init_bus_1, 1, 2, 0,
1125 doc: /* Establish the connection to D-Bus BUS. 1125 doc: /* Establish the connection to D-Bus BUS.
1126 1126
1127This function is dbus-internal. You almost certainly want to use
1128dbus-init-bus.
1129
1127BUS can be either the symbol `:system' or the symbol `:session', or it 1130BUS can be either the symbol `:system' or the symbol `:session', or it
1128can be a string denoting the address of the corresponding bus. For 1131can be a string denoting the address of the corresponding bus. For
1129the system and session buses, this function is called when loading 1132the system and session buses, this function is called when loading
@@ -1742,8 +1745,8 @@ void
1742syms_of_dbusbind (void) 1745syms_of_dbusbind (void)
1743{ 1746{
1744 1747
1745 DEFSYM (Qdbus_init_bus, "dbus-init-bus"); 1748 DEFSYM (Qdbus_init_bus_1, "dbus-init-bus-1");
1746 defsubr (&Sdbus_init_bus); 1749 defsubr (&Sdbus_init_bus_1);
1747 1750
1748 DEFSYM (Qdbus_get_unique_name, "dbus-get-unique-name"); 1751 DEFSYM (Qdbus_get_unique_name, "dbus-get-unique-name");
1749 defsubr (&Sdbus_get_unique_name); 1752 defsubr (&Sdbus_get_unique_name);