summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);