mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
wayland-client: add wl_display_get_error()
A server may asynchronously send errors via wl_display.error() events. Instead of aborting we now the a "last_error" flag inside of wl_display objects. The user can retrieve these via wl_display_get_error(). Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
36e29df2cb
commit
66e4aa98cf
2 changed files with 37 additions and 3 deletions
|
|
@ -118,6 +118,7 @@ int wl_display_dispatch(struct wl_display *display);
|
|||
int wl_display_dispatch_queue(struct wl_display *display,
|
||||
struct wl_event_queue *queue);
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue