From 6e29e5f2ee2e6158f1a9480a83e4f906ab9c04d1 Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Thu, 23 Feb 2006 17:50:53 -0800 Subject: [PATCH] Add XCBGetQueuedRequestRead for Xlib that does no syscalls, just returns whatever XCB already knows about. --- src/xcb_xlib.c | 5 +++++ src/xcbxlib.h | 3 +++ 2 files changed, 8 insertions(+) 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 @@ -31,6 +31,9 @@ #include #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); -- 2.34.1