diff options
| author | Daniel Colascione | 2014-02-20 20:32:31 -0800 |
|---|---|---|
| committer | Daniel Colascione | 2014-02-20 20:32:31 -0800 |
| commit | 4819842050c3885e1d8aa33374370ea707490f5c (patch) | |
| tree | 0b10a2b23999adcc709d6a8efd30c43703e89c3d /src | |
| parent | e48983a694b2c72c6226a75e294efbe5de69bf13 (diff) | |
| parent | 146a4cf20237685a47cb3e8e85b85d63d4dff704 (diff) | |
| download | emacs-4819842050c3885e1d8aa33374370ea707490f5c.tar.gz emacs-4819842050c3885e1d8aa33374370ea707490f5c.zip | |
Improve dbus error handling; detect bus failure
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/dbusbind.c | 11 |
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 @@ | |||
| 1 | 2014-02-21 Daniel Colascione <dancol@dancol.org> | ||
| 2 | |||
| 3 | * dbusbind.c: Rename dbus-init-bus to dbus-init-bus-1. | ||
| 4 | |||
| 1 | 2014-02-20 Eli Zaretskii <eliz@gnu.org> | 5 | 2014-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. */ |
| 45 | static Lisp_Object Qdbus_init_bus; | 45 | static Lisp_Object Qdbus_init_bus_1; |
| 46 | static Lisp_Object Qdbus_get_unique_name; | 46 | static Lisp_Object Qdbus_get_unique_name; |
| 47 | static Lisp_Object Qdbus_message_internal; | 47 | static 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 | ||
| 1124 | DEFUN ("dbus-init-bus", Fdbus_init_bus, Sdbus_init_bus, 1, 2, 0, | 1124 | DEFUN ("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 | ||
| 1127 | This function is dbus-internal. You almost certainly want to use | ||
| 1128 | dbus-init-bus. | ||
| 1129 | |||
| 1127 | BUS can be either the symbol `:system' or the symbol `:session', or it | 1130 | BUS can be either the symbol `:system' or the symbol `:session', or it |
| 1128 | can be a string denoting the address of the corresponding bus. For | 1131 | can be a string denoting the address of the corresponding bus. For |
| 1129 | the system and session buses, this function is called when loading | 1132 | the system and session buses, this function is called when loading |
| @@ -1742,8 +1745,8 @@ void | |||
| 1742 | syms_of_dbusbind (void) | 1745 | syms_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); |