[Xcb-commit] 2 commits - configure.ac event
Arnaud Fontaine
arnau at kemper.freedesktop.org
Wed Jul 15 08:56:48 PDT 2009
configure.ac | 2 +-
event/event.c | 1 +
event/xcb_event.h | 2 --
3 files changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 7203209697ee974a4c2118940ac9edc87ff72980
Author: Arnaud Fontaine <arnau at debian.org>
Date: Wed Jul 15 16:26:56 2009 +0100
event: fix compiler warning due to missing include for memset
diff --git a/event/event.c b/event/event.c
index 1332a33..7faac1c 100644
--- a/event/event.c
+++ b/event/event.c
@@ -28,6 +28,7 @@
#include <assert.h>
#include <stdlib.h>
+#include <string.h>
#include "xcb_event.h"
#include "../xcb-util-common.h"
commit c02bcf68606a89f8a96ba18f8da6642f7ae1199f
Author: Arnaud Fontaine <arnau at debian.org>
Date: Wed Jul 15 16:23:41 2009 +0100
event: remove useless macros to get error information because libxcb
1.4 now provides additional fields (major_opcode, minor_opcode
and resource_id) like Xlib.
diff --git a/configure.ac b/configure.ac
index 714b617..61811a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,7 +51,7 @@ AC_SUBST(xcbincludedir)
pkgconfigdir='${libdir}/pkgconfig'
AC_SUBST(pkgconfigdir)
-PKG_CHECK_MODULES(XCB, xcb >= 1.2)
+PKG_CHECK_MODULES(XCB, xcb >= 1.4)
######
# Check version of xcb-proto that xcb was compiled against
diff --git a/event/xcb_event.h b/event/xcb_event.h
index 05b9cac..9bd286b 100644
--- a/event/xcb_event.h
+++ b/event/xcb_event.h
@@ -55,8 +55,6 @@ extern "C" {
#define XCB_EVENT_RESPONSE_TYPE_MASK (0x7f)
#define XCB_EVENT_RESPONSE_TYPE(e) (e->response_type & XCB_EVENT_RESPONSE_TYPE_MASK)
#define XCB_EVENT_SENT(e) (e->response_type & ~XCB_EVENT_RESPONSE_TYPE_MASK)
-#define XCB_EVENT_ERROR_TYPE(e) (*((uint8_t *) e + 1))
-#define XCB_EVENT_REQUEST_TYPE(e) (*((uint8_t *) e + 10))
typedef int (*xcb_generic_event_handler_t)(void *data, xcb_connection_t *c, xcb_generic_event_t *event);
typedef int (*xcb_generic_error_handler_t)(void *data, xcb_connection_t *c, xcb_generic_error_t *error);
More information about the xcb-commit
mailing list