aboutsummaryrefslogtreecommitdiff
path: root/jsmn.h
diff options
context:
space:
mode:
Diffstat (limited to 'jsmn.h')
-rw-r--r--jsmn.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/jsmn.h b/jsmn.h
new file mode 100644
index 000000000..bdf1bff89
--- /dev/null
+++ b/jsmn.h
@@ -0,0 +1,17 @@
+#ifndef __JSMN_H_
+#define __JSMN_H_
+
+typedef enum {
+ JSON_OBJECT,
+ JSON_ARRAY,
+ JSON_STRING,
+ JSON_OTHER
+} jsontype_t;
+
+typedef struct {
+ jsontype_t type;
+ int start;
+ int end;
+} jsontok_t;
+
+#endif /* __JSMN_H_ */