summaryrefslogtreecommitdiff
path: root/src/rexmpp.h
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2020-11-26 15:09:42 +0300
committerdefanor <defanor@uberspace.net>2020-11-26 15:09:42 +0300
commitff1dad7ec8717a3cf4a798daff9f025964c660f5 (patch)
treec50da3e562df78da47ae493e7026f4e5f5e55321 /src/rexmpp.h
parent1e242aaf63f40dc3b6f9447e5f677f4e7d60bccc (diff)
Introduce rexmpp_strerror
Diffstat (limited to 'src/rexmpp.h')
-rw-r--r--src/rexmpp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/rexmpp.h b/src/rexmpp.h
index 781a1df..570cab1 100644
--- a/src/rexmpp.h
+++ b/src/rexmpp.h
@@ -178,7 +178,7 @@ enum rexmpp_err {
REXMPP_E_SEND_BUFFER_NOT_EMPTY,
/** SASL-related error. */
REXMPP_E_SASL,
- /** OpenGPG-related error. */
+ /** OpenPGP-related error. */
REXMPP_E_PGP,
/** TLS-related error. */
REXMPP_E_TLS,
@@ -519,4 +519,11 @@ xmlNodePtr rexmpp_find_event (rexmpp_t *s,
void rexmpp_console_feed (rexmpp_t *s, char *str, ssize_t str_len);
+/**
+ @brief A strerror function for ::rexmpp_err
+ @param[in] error Error code, as returned by rexmpp functions.
+ @returns A string explaining the error.
+*/
+const char *rexmpp_strerror (rexmpp_err_t error);
+
#endif