X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_xlib.c;h=5e56426c3a400e18106638d731c1f00fa8f45c2f;hb=810dfb886247dc4484886aff2e2e7d80ea945de4;hp=61518f765fcfe824c468e5384185a38d41fcf79b;hpb=a92716f1da2741fca850b3c37299e80032726276;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_xlib.c b/src/xcb_xlib.c index 61518f7..5e56426 100644 --- a/src/xcb_xlib.c +++ b/src/xcb_xlib.c @@ -26,12 +26,16 @@ #include "xcbxlib.h" #include "xcbint.h" -unsigned int XCBGetRequestSent(XCBConnection *c) +unsigned int xcb_get_request_sent(xcb_connection_t *c) { + if(c->has_error) + return 0; return c->out.request; } -pthread_mutex_t *XCBGetIOLock(XCBConnection *c) +pthread_mutex_t *xcb_get_io_lock(xcb_connection_t *c) { + if(c->has_error) + return 0; return &c->iolock; }