summaryrefslogtreecommitdiff
path: root/jsmn.h
diff options
context:
space:
mode:
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.)