]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qobject/json-parser-int.h
migration/postcopy: postpone setting PostcopyState to END
[mirror_qemu.git] / qobject / json-parser-int.h
index ceaa890ec6ab4e490feb9783439dbeeaee2bb5be..16a25d00bb62f31ab4c7f8eabb48f624b12b616b 100644 (file)
 
 #include "qapi/qmp/json-parser.h"
 
-
 typedef enum json_token_type {
-    JSON_MIN = 100,
-    JSON_LCURLY = JSON_MIN,
+    JSON_ERROR = 0,             /* must be zero, see json_lexer[] */
+    /* Gap for lexer states */
+    JSON_LCURLY = 100,
+    JSON_MIN = JSON_LCURLY,
     JSON_RCURLY,
     JSON_LSQUARE,
     JSON_RSQUARE,
@@ -30,9 +31,8 @@ typedef enum json_token_type {
     JSON_KEYWORD,
     JSON_STRING,
     JSON_INTERP,
-    JSON_SKIP,
-    JSON_ERROR,
     JSON_END_OF_INPUT,
+    JSON_MAX = JSON_END_OF_INPUT
 } JSONTokenType;
 
 typedef struct JSONToken JSONToken;