aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbusbind.c
diff options
context:
space:
mode:
authorTom Tromey2012-12-17 07:56:22 -0700
committerTom Tromey2012-12-17 07:56:22 -0700
commit3d6eced1ae51ffd0a782130e7c334052277e2724 (patch)
tree5d1d2ad7cd3374f922886c4a72062511a035c168 /src/dbusbind.c
parentbf69f522a9e135f9aa483cedd53e71e915f2bf75 (diff)
parent7c3d167f48d6262ee4e5512aa50a07ee96bc1509 (diff)
downloademacs-3d6eced1ae51ffd0a782130e7c334052277e2724.tar.gz
emacs-3d6eced1ae51ffd0a782130e7c334052277e2724.zip
merge from trunk
Diffstat (limited to 'src/dbusbind.c')
-rw-r--r--src/dbusbind.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c
index 901820648cb..da8bbb1e5d7 100644
--- a/src/dbusbind.c
+++ b/src/dbusbind.c
@@ -21,7 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
21#ifdef HAVE_DBUS 21#ifdef HAVE_DBUS
22#include <stdio.h> 22#include <stdio.h>
23#include <dbus/dbus.h> 23#include <dbus/dbus.h>
24#include <setjmp.h> 24
25#include "lisp.h" 25#include "lisp.h"
26#include "frame.h" 26#include "frame.h"
27#include "termhooks.h" 27#include "termhooks.h"
@@ -32,6 +32,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
32#define DBUS_NUM_MESSAGE_TYPES 5 32#define DBUS_NUM_MESSAGE_TYPES 5
33#endif 33#endif
34 34
35
36/* Some platforms define the symbol "interface", but we want to use it
37 * as a variable name below. */
38
39#ifdef interface
40#undef interface
41#endif
42
35 43
36/* Subroutines. */ 44/* Subroutines. */
37static Lisp_Object Qdbus_init_bus; 45static Lisp_Object Qdbus_init_bus;
@@ -291,8 +299,8 @@ xd_symbol_to_dbus_type (Lisp_Object object)
291 } \ 299 } \
292 } while (0) 300 } while (0)
293 301
294#if (HAVE_DBUS_VALIDATE_BUS_NAME || HAVE_DBUS_VALIDATE_PATH \ 302#if (HAVE_DBUS_VALIDATE_BUS_NAME || HAVE_DBUS_VALIDATE_PATH \
295 || XD_DBUS_VALIDATE_OBJECT || HAVE_DBUS_VALIDATE_MEMBER) 303 || HAVE_DBUS_VALIDATE_INTERFACE || HAVE_DBUS_VALIDATE_MEMBER)
296#define XD_DBUS_VALIDATE_OBJECT(object, func) \ 304#define XD_DBUS_VALIDATE_OBJECT(object, func) \
297 do { \ 305 do { \
298 if (!NILP (object)) \ 306 if (!NILP (object)) \
@@ -1195,7 +1203,7 @@ this connection to those buses. */)
1195 xd_registered_buses = Fcons (Fcons (bus, val), xd_registered_buses); 1203 xd_registered_buses = Fcons (Fcons (bus, val), xd_registered_buses);
1196 1204
1197 /* We do not want to abort. */ 1205 /* We do not want to abort. */
1198 putenv ((char *) "DBUS_FATAL_WARNINGS=0"); 1206 xputenv ("DBUS_FATAL_WARNINGS=0");
1199 1207
1200 /* Cleanup. */ 1208 /* Cleanup. */
1201 dbus_error_free (&derror); 1209 dbus_error_free (&derror);