diff options
author | Bart Massey <bart@cs.pdx.edu> | 2008-03-05 13:24:34 -0800 |
---|---|---|
committer | Arnaud Fontaine <arnau@debian.org> | 2010-11-14 19:49:48 +0900 |
commit | 3ce9210fe2a5597699b8e4fec8fc030999be51e7 (patch) | |
tree | 124f3bd6d88c1eaac98cf80d747b3140c6e76d36 | |
parent | ef27e7f190e9840efa000019b29fbdd7a865caeb (diff) |
made xcb_handle_event() externally visible
-rw-r--r-- | event/events.c | 4 | ||||
-rw-r--r-- | event/xcb_event.h | 1 |
2 files changed, 3 insertions, 2 deletions
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); |