aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
diff options
context:
space:
mode:
Diffstat (limited to 'serd/serd.h')
-rw-r--r--serd/serd.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 41dff3bb..583c6eec 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -83,14 +83,18 @@ typedef struct SerdWriterImpl SerdWriter;
Return status code.
*/
typedef enum {
- SERD_SUCCESS = 0, /**< No error */
- SERD_FAILURE = 1, /**< Non-fatal failure */
- SERD_ERR_UNKNOWN = 2, /**< Unknown error */
- SERD_ERR_BAD_SYNTAX = 3, /**< Invalid syntax */
- SERD_ERR_BAD_ARG = 3, /**< Invalid argument */
- SERD_ERR_NOT_FOUND = 4 /**< Not found */
+ SERD_SUCCESS, /**< No error */
+ SERD_FAILURE, /**< Non-fatal failure */
+ SERD_ERR_UNKNOWN, /**< Unknown error */
+ SERD_ERR_BAD_SYNTAX, /**< Invalid syntax */
+ SERD_ERR_BAD_ARG, /**< Invalid argument */
+ SERD_ERR_NOT_FOUND /**< Not found */
} SerdStatus;
+SERD_API
+const uint8_t*
+serd_strerror(SerdStatus status);
+
/**
RDF syntax type.
*/