summaryrefslogtreecommitdiffstats
path: root/include/qapi/qmp/json-streamer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/qapi/qmp/json-streamer.h')
-rw-r--r--include/qapi/qmp/json-streamer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qapi/qmp/json-streamer.h b/include/qapi/qmp/json-streamer.h
index e9f2937..09b3d3e 100644
--- a/include/qapi/qmp/json-streamer.h
+++ b/include/qapi/qmp/json-streamer.h
@@ -18,6 +18,13 @@
#include "glib-compat.h"
#include "qapi/qmp/json-lexer.h"
+typedef struct JSONToken {
+ int type;
+ int x;
+ int y;
+ char str[];
+} JSONToken;
+
typedef struct JSONMessageParser
{
void (*emit)(struct JSONMessageParser *parser, GQueue *tokens);
OpenPOWER on IntegriCloud