[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/src dbusbind.c
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] emacs/src dbusbind.c |
Date: |
Sat, 22 Aug 2009 08:56:45 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Michael Albinus <albinus> 09/08/22 08:56:44
Modified files:
src : dbusbind.c
Log message:
* dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
intended as hotfix only.
(xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/dbusbind.c?cvsroot=emacs&r1=1.45&r2=1.46
Patches:
Index: dbusbind.c
===================================================================
RCS file: /sources/emacs/emacs/src/dbusbind.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -b -r1.45 -r1.46
--- dbusbind.c 20 Aug 2009 12:54:32 -0000 1.45
+++ dbusbind.c 22 Aug 2009 08:56:44 -0000 1.46
@@ -71,16 +71,6 @@
/* We use "xd_" and "XD_" as prefix for all internal symbols, because
we don't want to poison other namespaces with "dbus_". */
-/* Since D-Bus 1.1.1, dbus_watch_get_fd() was replaced by
- dbus_watch_get_unix_fd and dbus_watch_get_socket. We must check
- this. */
-#ifdef DBUS_VERSION
-#define XD_WITH_DBUS_WATCH_GET_UNIX_FD \
- ((1 << 16) | (1 << 8) | (1)) <= DBUS_VERSION
-#else
-#define XD_WITH_DBUS_WATCH_GET_UNIX_FD 0
-#endif
-
/* Raise a signal. If we are reading events, we cannot signal; we
throw to xd_read_queued_messages then. */
#define XD_SIGNAL1(arg)
\
@@ -752,7 +742,7 @@
/* We check only for incoming data. */
if (dbus_watch_get_flags (watch) & DBUS_WATCH_READABLE)
{
-#if XD_WITH_DBUS_WATCH_GET_UNIX_FD
+#if HAVE_DBUS_WATCH_GET_UNIX_FD
/* TODO: Reverse these on Win32, which prefers the opposite. */
int fd = dbus_watch_get_unix_fd(watch);
if (fd == -1)
@@ -782,7 +772,7 @@
/* We check only for incoming data. */
if (dbus_watch_get_flags (watch) & DBUS_WATCH_READABLE)
{
-#if XD_WITH_DBUS_WATCH_GET_UNIX_FD
+#if HAVE_DBUS_WATCH_GET_UNIX_FD
/* TODO: Reverse these on Win32, which prefers the opposite. */
int fd = dbus_watch_get_unix_fd(watch);
if (fd == -1)
- [Emacs-diffs] emacs/src dbusbind.c, Michael Albinus, 2009/08/15
- [Emacs-diffs] emacs/src dbusbind.c, Michael Albinus, 2009/08/16
- [Emacs-diffs] emacs/src dbusbind.c, Michael Albinus, 2009/08/16
- [Emacs-diffs] emacs/src dbusbind.c, Michael Albinus, 2009/08/18
- [Emacs-diffs] emacs/src dbusbind.c, Michael Albinus, 2009/08/20
- [Emacs-diffs] emacs/src dbusbind.c,
Michael Albinus <=
- [Emacs-diffs] emacs/src dbusbind.c, Michael Albinus, 2009/08/25