projects
/
free-sw
/
xcb
/
libxcb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26ac629
)
Add XCBGetQueuedRequestRead for Xlib that does no syscalls, just returns whatever...
author
Jamey Sharp
<jamey@minilop.net>
Fri, 24 Feb 2006 01:50:53 +0000
(17:50 -0800)
committer
Jamey Sharp
<jamey@minilop.net>
Fri, 24 Feb 2006 01:50:53 +0000
(17:50 -0800)
src/xcb_xlib.c
patch
|
blob
|
history
src/xcbxlib.h
patch
|
blob
|
history
diff --git
a/src/xcb_xlib.c
b/src/xcb_xlib.c
index
61518f7
..
09f74a7
100644
(file)
--- 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
(file)
--- a/
src/xcbxlib.h
+++ b/
src/xcbxlib.h
@@
-31,6
+31,9
@@
#include <pthread.h>
#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);