Added more error states and removed global error_connection
authorArvind Umrao <arvind.umrao@oracle.com>
Fri, 4 Nov 2011 10:12:05 +0000 (15:42 +0530)
committerJulien Danjou <julien@danjou.info>
Wed, 11 Jan 2012 17:01:29 +0000 (18:01 +0100)
commit769acff0da8b9859ebdf052dce80045465c7598c
treeda557d02c65a7f3ba8dfd73284c0300f780593a1
parent9b4d6f30a339e2d18ebaea98149da81aba453216
Added more error states and removed global error_connection

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41443
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=42304

I have added more xcb connection error states at xcb.h header.
Also I have removed global error_connection variable, and added
an interface that returns connection error state.

TBD:
I will segregate errors states in a separate header file and try to
provide more precise error states, in future. Also I will give patch
for libX11, in that patch xcb_connection_t::has_error will be passed
to default io handler of libX11. This value can then be used for
displaying error messages.

Reviewed-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
Reviewed-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Arvind Umrao <arvind.umrao@oracle.com>
src/xcb.h
src/xcb_conn.c
src/xcb_in.c
src/xcb_out.c
src/xcb_util.c
src/xcbint.h