summaryrefslogtreecommitdiff
path: root/jsmn.h
diff options
context:
space:
mode:
authorSerge A. Zaitsev <devnull@localhost>2010-11-16 13:50:13 +0200
committerSerge A. Zaitsev <devnull@localhost>2010-11-16 13:50:13 +0200
commita2755a75953e61fffb6210c16ddbaee1e4f6ff90 (patch)
tree693e11e2c85f3f2ce11e3ee57cd1ba476570490e /jsmn.h
parentdaf93a0ebd10e3778ec77a62577543fb11884c83 (diff)
Design: some error codes added
Diffstat (limited to 'jsmn.h')
-rw-r--r--jsmn.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/jsmn.h b/jsmn.h
index 06f2f516a..408c53843 100644
--- a/jsmn.h
+++ b/jsmn.h
@@ -17,6 +17,13 @@ typedef enum {
JSON_NUMBER
} jsontype_t;
+typedef enum {
+ JSMN_ERROR_NOMEM = -1,
+ JSMN_ERROR_INVAL = -2,
+ JSMN_ERROR_PART = -3,
+ JSMN_SUCCESS = 0
+} jsmnerr_t;
+
/**
* JSON token description.
* @param type type (object, array, string etc.)