summaryrefslogtreecommitdiff
path: root/src/xcb_conn.c
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-09-15 00:29:39 -0700
committerJamey Sharp <jamey@minilop.net>2006-09-21 15:17:18 -0700
commitac17ae62fe1a3a29991e36e35eeee838ac4acb00 (patch)
tree9bec7ac9cf4a16891295244719aff080a021676b /src/xcb_conn.c
parentdf7fb77d6e22be76ca73f111c586db99a60178ae (diff)
Provide a "has error" property for XCBConnection.
Diffstat (limited to 'src/xcb_conn.c')
-rw-r--r--src/xcb_conn.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xcb_conn.c b/src/xcb_conn.c
index be80bac..b0d727b 100644
--- a/src/xcb_conn.c
+++ b/src/xcb_conn.c
@@ -187,6 +187,12 @@ int XCBGetFileDescriptor(XCBConnection *c)
return c->fd;
}
+int XCBConnectionHasError(XCBConnection *c)
+{
+ /* doesn't need locking because it's read and written atomically. */
+ return c->has_error;
+}
+
XCBConnection *XCBConnectToFD(int fd, XCBAuthInfo *auth_info)
{
XCBConnection* c;