wayland-client: add wl_display_get_error()
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 11 Oct 2012 21:37:42 +0000 (23:37 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 15 Oct 2012 20:06:00 +0000 (16:06 -0400)
commit66e4aa98cf5505a6f849f696afc9256714a5bee9
treed619e8a6c97c45fdf36212a95656c86976106489
parent36e29df2cbbe44292765902d5fbbdd56bc7cf280
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>
src/wayland-client.c
src/wayland-client.h