[Xcb-commit] 3 commits - event
Bart Massey
bart at kemper.freedesktop.org
Wed Mar 5 13:27:31 PST 2008
event/events.c | 6 +++---
event/xcb_event.h | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 85468cb711c5024098216cc7ef6563e0384f2d63
Author: Bart Massey <bart at cs.pdx.edu>
Date: Wed Mar 5 13:27:07 2008 -0800
fixed missed reference in previous patch
diff --git a/event/events.c b/event/events.c
index c19d01f..4f5ea89 100644
--- a/event/events.c
+++ b/event/events.c
@@ -77,7 +77,7 @@ void xcb_poll_for_event_loop(xcb_event_handlers_t *evenths)
xcb_generic_event_t *event;
while ((event = xcb_poll_for_event(evenths->c)))
{
- handle_event(evenths, event);
+ xcb_handle_event(evenths, event);
free(event);
}
}
commit 556905101b9b5a8ad0de5600f127bf4eb18d1418
Merge: e6e27c1... 66728b2...
Author: Bart Massey <bart at cs.pdx.edu>
Date: Wed Mar 5 13:26:24 2008 -0800
merged event loop split with last patch
diff --cc event/xcb_event.h
index ce4cdcd,9122893..e35ceb1
--- a/event/xcb_event.h
+++ b/event/xcb_event.h
@@@ -14,8 -14,8 +14,9 @@@ xcb_event_handlers_t *xcb_alloc_event_h
void xcb_free_event_handlers(xcb_event_handlers_t *evenths);
xcb_connection_t *xcb_get_xcb_connection(xcb_event_handlers_t *evenths);
- void xcb_event_loop(xcb_event_handlers_t *evenths);
+ void xcb_wait_for_event_loop(xcb_event_handlers_t *evenths);
+ void xcb_poll_for_event_loop(xcb_event_handlers_t *evenths);
+int xcb_handle_event(xcb_event_handlers_t *evenths, xcb_generic_event_t *event);
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);
commit e6e27c134415c409b5bffe70d9a8c6bcf751cb5c
Author: Bart Massey <bart at cs.pdx.edu>
Date: Wed Mar 5 13:24:34 2008 -0800
made xcb_handle_event() externally visible
diff --git a/event/events.c b/event/events.c
index 2900bd3..399c6ce 100644
--- a/event/events.c
+++ b/event/events.c
@@ -47,7 +47,7 @@ static xcb_event_handler_t *get_error_handler(xcb_event_handlers_t *evenths, int
return &evenths->error[error];
}
-static int handle_event(xcb_event_handlers_t *evenths, xcb_generic_event_t *event)
+int xcb_handle_event(xcb_event_handlers_t *evenths, xcb_generic_event_t *event)
{
xcb_event_handler_t *eventh = 0;
assert(event->response_type != 1);
@@ -67,7 +67,7 @@ void xcb_event_loop(xcb_event_handlers_t *evenths)
xcb_generic_event_t *event;
while((event = xcb_wait_for_event(evenths->c)))
{
- handle_event(evenths, event);
+ xcb_handle_event(evenths, event);
free(event);
}
}
diff --git a/event/xcb_event.h b/event/xcb_event.h
index deb7ba8..ce4cdcd 100644
--- a/event/xcb_event.h
+++ b/event/xcb_event.h
@@ -15,6 +15,7 @@ void xcb_free_event_handlers(xcb_event_handlers_t *evenths);
xcb_connection_t *xcb_get_xcb_connection(xcb_event_handlers_t *evenths);
void xcb_event_loop(xcb_event_handlers_t *evenths);
+int xcb_handle_event(xcb_event_handlers_t *evenths, xcb_generic_event_t *event);
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