summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-02-23 17:50:53 -0800
committerJamey Sharp <jamey@minilop.net>2006-02-23 17:50:53 -0800
commit6e29e5f2ee2e6158f1a9480a83e4f906ab9c04d1 (patch)
treed7307ee1e5b8a5ed87c1ca7bf13b4a585432504a
parent26ac6292ba0535ac3747d23f2f4d284c4b5f42ba (diff)
Add XCBGetQueuedRequestRead for Xlib that does no syscalls, just returns whatever XCB already knows about.
-rw-r--r--src/xcb_xlib.c5
-rw-r--r--src/xcbxlib.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/xcb_xlib.c b/src/xcb_xlib.c
index 61518f7..09f74a7 100644
--- a/src/xcb_xlib.c
+++ b/src/xcb_xlib.c
@@ -26,6 +26,11 @@
#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;
diff --git a/src/xcbxlib.h b/src/xcbxlib.h
index 59dd2a5..462e2e3 100644
--- a/src/xcbxlib.h
+++ b/src/xcbxlib.h
@@ -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);