aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-05-16 16:47:49 +0100
committerRichard van der Hoff <richard@matrix.org>2016-05-24 13:35:28 +0100
commit256bce10fc6c811293cd7d9089ba2d69cec0d59b (patch)
tree6462822c0faf18393d71eaeaa71fbb6e4bd803c8 /include
parent2e7800cf650197f4b8998ef8ac24d08daa316a2f (diff)
Factor out olm_error_to_string to a separate file
I want to be able to use this functionality from elsewhere, so factor it out to its own file.
Diffstat (limited to 'include')
-rw-r--r--include/olm/error.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/olm/error.h b/include/olm/error.h
index a4f373e..460017e 100644
--- a/include/olm/error.h
+++ b/include/olm/error.h
@@ -31,8 +31,15 @@ enum OlmErrorCode {
OLM_BAD_ACCOUNT_KEY = 8, /*!< The supplied account key is invalid */
OLM_UNKNOWN_PICKLE_VERSION = 9, /*!< The pickled object is too new */
OLM_CORRUPTED_PICKLE = 10, /*!< The pickled object couldn't be decoded */
+
+ /* remember to update the list of string constants in error.c when updating
+ * this list. */
+
};
+/** get a string representation of the given error code. */
+const char * _olm_error_to_string(enum OlmErrorCode error);
+
#ifdef __cplusplus
} // extern "C"
#endif