Make the server event loop embeddable

By exposing the epoll fd, we can embed the server event loop in other
main loops suchs as Qt or GTK+.
This commit is contained in:
Kristian Høgsberg 2010-11-19 10:47:28 -05:00
parent 67f4ffdf03
commit b163cef6e7
3 changed files with 19 additions and 31 deletions

View file

@ -436,7 +436,7 @@ WL_EXPORT void
wl_display_run(struct wl_display *display)
{
while (1)
wl_event_loop_wait(display->loop);
wl_event_loop_dispatch(display->loop, -1);
}
static void