summaryrefslogtreecommitdiff
path: root/jsmn.h
diff options
context:
space:
mode:
authorSerge A. Zaitsev <devnull@localhost>2010-11-15 13:11:08 +0200
committerSerge A. Zaitsev <devnull@localhost>2010-11-15 13:11:08 +0200
commitf22c2d30b7c73ebf1a7815b4a3eb5df18c251ed1 (patch)
treed57979b1a9c4299e4994b6806a154fa50c59ab3e /jsmn.h
Initial commit. Demo program is included in the jsmn.c code. Ugly names and no comments. Please, don't read this changeset
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_ */