Add XCBGetQueuedRequestRead for Xlib that does no syscalls, just returns whatever...
authorJamey Sharp <jamey@minilop.net>
Fri, 24 Feb 2006 01:50:53 +0000 (17:50 -0800)
committerJamey Sharp <jamey@minilop.net>
Fri, 24 Feb 2006 01:50:53 +0000 (17:50 -0800)
src/xcb_xlib.c
src/xcbxlib.h

index 61518f7..09f74a7 100644 (file)
 #include "xcbxlib.h"
 #include "xcbint.h"
 
+unsigned int XCBGetQueuedRequestRead(XCBConnection *c)
+{
+    return c->in.request_read;
+}
+
 unsigned int XCBGetRequestSent(XCBConnection *c)
 {
     return c->out.request;
index 59dd2a5..462e2e3 100644 (file)
@@ -32,6 +32,9 @@
 #include "xcb.h"
 
 /* This function must be called with the IOLock held. */
+unsigned int XCBGetQueuedRequestRead(XCBConnection *c);
+
+/* This function must be called with the IOLock held. */
 unsigned int XCBGetRequestSent(XCBConnection *c);
 
 pthread_mutex_t *XCBGetIOLock(XCBConnection *c);