summaryrefslogtreecommitdiff
path: root/src/rexmpp.h
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2020-11-26 10:31:01 +0300
committerdefanor <defanor@uberspace.net>2020-11-26 10:31:01 +0300
commit1e242aaf63f40dc3b6f9447e5f677f4e7d60bccc (patch)
tree354d34f23edda85f642998dca642830c79d39ed1 /src/rexmpp.h
parent2bf30b026aa22038e079043ed2dcdfc5aab4c725 (diff)
Propagate more errors back
Still not certain whether rexmpp_run should return anything other than REXMPP_E_AGAIN and REXMPP_E_SUCCESS, since the library handles reconnects, but perhaps some errors could be critical. It should be sorted out in the future.
Diffstat (limited to 'src/rexmpp.h')
-rw-r--r--src/rexmpp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rexmpp.h b/src/rexmpp.h
index 623390f..781a1df 100644
--- a/src/rexmpp.h
+++ b/src/rexmpp.h
@@ -199,7 +199,9 @@ enum rexmpp_err {
/** An erroneous parameter is supplied. */
REXMPP_E_PARAM,
/** A stream error. */
- REXMPP_E_STREAM
+ REXMPP_E_STREAM,
+ /** An unspecified error. */
+ REXMPP_E_OTHER
};
typedef enum rexmpp_err rexmpp_err_t;