summaryrefslogtreecommitdiff
path: root/dist/xcb-util/event
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-09-05 15:55:47 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-09-05 15:55:47 +0000
commit7e6bbbf222239c48377c748a99a9996f66fe68ac (patch)
treef0742a11efd32a888c21174c90e6f39dfe0fd17b /dist/xcb-util/event
parent1f6f82c0a5a3164b783bd897c90f993af8881801 (diff)
update to xcb-util 0.3.6. Tested on a packages bulk build by naddy@.
Diffstat (limited to 'dist/xcb-util/event')
-rw-r--r--dist/xcb-util/event/event.c1
-rw-r--r--dist/xcb-util/event/xcb_event.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/dist/xcb-util/event/event.c b/dist/xcb-util/event/event.c
index 1332a33c6..7faac1c52 100644
--- a/dist/xcb-util/event/event.c
+++ b/dist/xcb-util/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"
diff --git a/dist/xcb-util/event/xcb_event.h b/dist/xcb-util/event/xcb_event.h
index 05b9cac18..9bd286b0e 100644
--- a/dist/xcb-util/event/xcb_event.h
+++ b/dist/xcb-util/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);