projects
/
platform
/
upstream
/
libxcb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f71bf9
)
Add a private connection shutdown method for error cases.
author
Jamey Sharp
<jamey@minilop.net>
Fri, 15 Sep 2006 08:57:53 +0000
(
01:57
-0700)
committer
Jamey Sharp
<jamey@minilop.net>
Thu, 21 Sep 2006 22:31:14 +0000
(15:31 -0700)
src/xcb_conn.c
patch
|
blob
|
history
src/xcbint.h
patch
|
blob
|
history
diff --git
a/src/xcb_conn.c
b/src/xcb_conn.c
index
2b24dc0
..
29d91f4
100644
(file)
--- a/
src/xcb_conn.c
+++ b/
src/xcb_conn.c
@@
-247,6
+247,11
@@
void XCBDisconnect(XCBConnection *c)
/* Private interface */
+void _xcb_conn_shutdown(XCBConnection *c)
+{
+ c->has_error = 1;
+}
+
int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count)
{
int ret;
diff --git
a/src/xcbint.h
b/src/xcbint.h
index
f059522
..
01d8a20
100644
(file)
--- a/
src/xcbint.h
+++ b/
src/xcbint.h
@@
-158,6
+158,7
@@
struct XCBConnection {
_xcb_xid xid;
};
+void _xcb_conn_shutdown(XCBConnection *c);
int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count);