mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
wayland-client: forward fatal errors to caller
If any callback or helper function fails with a fatal error, we now set the last_error flag and prevent all further I/O on the wl_display. We wake up all sleeping event-queues and notify the caller that they should shutdown wl_display. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
edae4ffa37
commit
33b7637b45
2 changed files with 81 additions and 20 deletions
|
|
@ -121,7 +121,7 @@ int wl_display_dispatch_pending(struct wl_display *display);
|
|||
int wl_display_get_error(struct wl_display *display);
|
||||
|
||||
int wl_display_flush(struct wl_display *display);
|
||||
void wl_display_roundtrip(struct wl_display *display);
|
||||
int wl_display_roundtrip(struct wl_display *display);
|
||||
struct wl_event_queue *wl_display_create_queue(struct wl_display *display);
|
||||
|
||||
void wl_log_set_handler_client(wl_log_func_t handler);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue