diff options
Diffstat (limited to 'src/rexmpp.h')
-rw-r--r-- | src/rexmpp.h | 9 |
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 |