aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-08-21 04:44:37 +0000
committerDavid Robillard <d@drobilla.net>2011-08-21 04:44:37 +0000
commit59143950ece9b6de731e1b00d2ca7f6596ea7d39 (patch)
tree4b220343283b336d8c04c847a283c9eb018bdd26 /serd
parent95697f076150957f01a84315775ab081011714bb (diff)
downloadserd-59143950ece9b6de731e1b00d2ca7f6596ea7d39.tar.gz
serd-59143950ece9b6de731e1b00d2ca7f6596ea7d39.tar.bz2
serd-59143950ece9b6de731e1b00d2ca7f6596ea7d39.zip
Gracefully handle NULL reader sinks.
Add serd_strerror. Fix erroneously equal SERD_ERR_BAD_SYNTAX and SERD_ERR_BAD_ARG. git-svn-id: http://svn.drobilla.net/serd/trunk@211 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'serd')
-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.
*/