aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbusbind.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbusbind.c')
-rw-r--r--src/dbusbind.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c
index c1b1310454c..901820648cb 100644
--- a/src/dbusbind.c
+++ b/src/dbusbind.c
@@ -70,7 +70,7 @@ static Lisp_Object QCdbus_registered_signal;
70static Lisp_Object xd_registered_buses; 70static Lisp_Object xd_registered_buses;
71 71
72/* Whether we are reading a D-Bus event. */ 72/* Whether we are reading a D-Bus event. */
73static int xd_in_read_queued_messages = 0; 73static bool xd_in_read_queued_messages = 0;
74 74
75 75
76/* We use "xd_" and "XD_" as prefix for all internal symbols, because 76/* We use "xd_" and "XD_" as prefix for all internal symbols, because
@@ -997,8 +997,7 @@ xd_find_watch_fd (DBusWatch *watch)
997} 997}
998 998
999/* Prototype. */ 999/* Prototype. */
1000static void 1000static void xd_read_queued_messages (int fd, void *data);
1001xd_read_queued_messages (int fd, void *data, int for_read);
1002 1001
1003/* Start monitoring WATCH for possible I/O. */ 1002/* Start monitoring WATCH for possible I/O. */
1004static dbus_bool_t 1003static dbus_bool_t
@@ -1039,11 +1038,13 @@ xd_remove_watch (DBusWatch *watch, void *data)
1039 return; 1038 return;
1040 1039
1041 /* Unset session environment. */ 1040 /* Unset session environment. */
1041#if 0
1042 if (XSYMBOL (QCdbus_session_bus) == data) 1042 if (XSYMBOL (QCdbus_session_bus) == data)
1043 { 1043 {
1044 // XD_DEBUG_MESSAGE ("unsetenv DBUS_SESSION_BUS_ADDRESS"); 1044 XD_DEBUG_MESSAGE ("unsetenv DBUS_SESSION_BUS_ADDRESS");
1045 // unsetenv ("DBUS_SESSION_BUS_ADDRESS"); 1045 unsetenv ("DBUS_SESSION_BUS_ADDRESS");
1046 } 1046 }
1047#endif
1047 1048
1048 if (flags & DBUS_WATCH_WRITABLE) 1049 if (flags & DBUS_WATCH_WRITABLE)
1049 delete_write_fd (fd); 1050 delete_write_fd (fd);
@@ -1684,7 +1685,7 @@ xd_read_message (Lisp_Object bus)
1684 1685
1685/* Callback called when something is ready to read or write. */ 1686/* Callback called when something is ready to read or write. */
1686static void 1687static void
1687xd_read_queued_messages (int fd, void *data, int for_read) 1688xd_read_queued_messages (int fd, void *data)
1688{ 1689{
1689 Lisp_Object busp = xd_registered_buses; 1690 Lisp_Object busp = xd_registered_buses;
1690 Lisp_Object bus = Qnil; 1691 Lisp_Object bus = Qnil;