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.h | |
parent | df7fb77d6e22be76ca73f111c586db99a60178ae (diff) |
Provide a "has error" property for XCBConnection.
Diffstat (limited to 'src/xcb.h')
-rw-r--r-- | src/xcb.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -334,6 +334,21 @@ const XCBSetup *XCBGetSetup(XCBConnection *c); int XCBGetFileDescriptor(XCBConnection *c); /** + * @brief Test whether the connection has shut down due to a fatal error. + * @param c: The connection. + * @return 1 if the connection is in an error state; 0 otherwise. + * + * Some errors that occur in the context of an XCBConnection + * are unrecoverable. When such an error occurs, the + * connection is shut down and further operations on the + * XCBConnection have no effect. + * + * @todo Other functions should document the conditions in + * which they shut down the connection. + */ +int XCBConnectionHasError(XCBConnection *c); + +/** * @brief Connects to the X server. * @param fd: The file descriptor. * @param auth_info: Authentication data. |