summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2015-04-04 16:46:07 +0200
committerUli Schlachter <psychon@znc.in>2015-04-04 16:46:07 +0200
commit322f2e1b8132e4f1013581793280a91c7b376282 (patch)
tree2fcc5ba554fff0167b19680f1af90ba9e18fe42a
parent862579778af55817d24e7cd421d34febd95791c1 (diff)
Document failure scenarios for *_new()
Signed-off-by: Uli Schlachter <psychon@znc.in>
-rw-r--r--src/xcb_errors.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xcb_errors.h b/src/xcb_errors.h
index 177b04c..757fd4a 100644
--- a/src/xcb_errors.h
+++ b/src/xcb_errors.h
@@ -49,7 +49,8 @@ typedef struct xcb_errors_context_t xcb_errors_context_t;
* with @ref xcb_errors_context_free ().
* @param ctx A pointer to an xcb_cursor_context_t* which will be modified to
* refer to the newly created context.
- * @return 0 on success, some other value otherwise.
+ * @return 0 on success, -1 otherwise. This function may fail due to memory
+ * allocation failures or if the connection ends up in an error state.
*/
int xcb_errors_context_new(xcb_connection_t *conn, xcb_errors_context_t **ctx);