diff options
author | Jamey Sharp <jamey@minilop.net> | 2006-09-15 00:29:39 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2006-09-21 15:17:18 -0700 |
commit | ac17ae62fe1a3a29991e36e35eeee838ac4acb00 (patch) | |
tree | 9bec7ac9cf4a16891295244719aff080a021676b /src/xcb_conn.c | |
parent | df7fb77d6e22be76ca73f111c586db99a60178ae (diff) |
Provide a "has error" property for XCBConnection.
Diffstat (limited to 'src/xcb_conn.c')
-rw-r--r-- | src/xcb_conn.c | 6 |
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; |