wayland/src
David Herrmann 003a946aa6 event-loop: export wl_event_loop_dispatch_idle()
When integrating the wayland event-loop into another event-loop, we
currently have no chance of checking whether there are pending idle
sources that have to be called. This patch exports the
"dispatch_idle_sources()" call so other event loops can call this before
going to sleep. This is what wl_event_loop_dispatch() currently does so we
simply allow external event-loops to do the same now.

To avoid breaking existing applications, we keep the call to
dispatch_idle_sources() in wl_event_loop_dispatch() for now. However, if
we want we can remove this later and require every application to call
this manually. This needs to be discussed, but the overhead is negligible
so we will probably leave it as it is.

This finally allows to fully integrate the wayland-server API into
existing event-loops without any nasty workarounds.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2012-09-12 12:28:54 -04:00
..
.gitignore Add a public header for the version number 2012-04-12 17:54:44 -04:00
connection.c connection: zero out string padding 2012-08-03 22:39:51 -04:00
data-device.c remove listener from wl_data_source destroy_signal listener list 2012-07-17 16:54:07 -04:00
event-loop.c event-loop: export wl_event_loop_dispatch_idle() 2012-09-12 12:28:54 -04:00
Makefile.am Add support for signed 24.8 decimal numbers 2012-05-08 14:40:39 -04:00
scanner.c Make NEW_IDs nullable 2012-07-23 20:16:57 -04:00
scanner.mk Rename source subdir from wayland to src 2011-08-12 16:25:14 -04:00
wayland-client-uninstalled.pc.in build: add uninstalled pkg-config files 2012-05-29 10:09:59 -04:00
wayland-client.c client: Add wl_display_connect_to_fd() function 2012-08-16 10:49:48 -04:00
wayland-client.h client: Add wl_display_connect_to_fd() function 2012-08-16 10:49:48 -04:00
wayland-client.pc.in Add a public header for the version number 2012-04-12 17:54:44 -04:00
wayland-egl.h Remove the wl_visual interface 2011-08-31 18:34:21 -04:00
wayland-os.c os: wrap accept4(SOCK_CLOEXEC) 2012-04-25 09:37:42 +03:00
wayland-os.h os: wrap accept4(SOCK_CLOEXEC) 2012-04-25 09:37:42 +03:00
wayland-private.h Unstatic arg_count_for_signature and get_next_argument 2012-07-23 20:15:28 -04:00
wayland-server-uninstalled.pc.in build: add uninstalled pkg-config files 2012-05-29 10:09:59 -04:00
wayland-server.c wayland-server: return new ID in wl_client_add_resource() 2012-09-10 21:44:47 -04:00
wayland-server.h event-loop: export wl_event_loop_dispatch_idle() 2012-09-12 12:28:54 -04:00
wayland-server.pc.in Add a public header for the version number 2012-04-12 17:54:44 -04:00
wayland-shm.c Add wl_shm_buffer_create() 2012-08-16 10:49:48 -04:00
wayland-util.c wayland-util: add method for reserving new object id 2012-07-22 14:09:48 -04:00
wayland-util.h Fixup source comment in wayland-util.h and fix typo in TODO 2012-07-09 18:11:06 -04:00
wayland-version.h.in Add a public header for the version number 2012-04-12 17:54:44 -04:00