From 3ce9210fe2a5597699b8e4fec8fc030999be51e7 Mon Sep 17 00:00:00 2001 From: Bart Massey Date: Wed, 5 Mar 2008 13:24:34 -0800 Subject: made xcb_handle_event() externally visible --- event/events.c | 4 ++-- 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); -- cgit v1.2.3