Include qapi/qmp/qstring.h exactly where needed
authorMarkus Armbruster <armbru@redhat.com>
Thu, 1 Feb 2018 11:18:40 +0000 (12:18 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 9 Feb 2018 12:52:15 +0000 (13:52 +0100)
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180201111846.21846-14-armbru@redhat.com>

13 files changed:
block.c
include/qapi/qmp/qjson.h
monitor.c
qapi/qobject-input-visitor.c
qemu-img.c
qga/main.c
qobject/qjson.c
tests/check-qjson.c
tests/libqtest.c
tests/test-qobject-input-visitor.c
tests/test-qobject-output-visitor.c
tests/test-visitor-serialization.c
ui/spice-core.c

diff --git a/block.c b/block.c
index 367641ef4f639e93f4898f8f609e1e30718498c6..43cc8bcf4a67deeb648b8d130a00bf331784bde5 100644 (file)
--- a/block.c
+++ b/block.c
@@ -35,6 +35,7 @@
 #include "qapi/qmp/qerror.h"
 #include "qapi/qmp/qbool.h"
 #include "qapi/qmp/qjson.h"
+#include "qapi/qmp/qstring.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/sysemu.h"
 #include "qemu/notify.h"
index 6b38b0f07406e7d37a079afa337cb8748847c469..b274ac3a8678982957c688306d4fcdc486ddfb35 100644 (file)
@@ -14,8 +14,6 @@
 #ifndef QJSON_H
 #define QJSON_H
 
-#include "qapi/qmp/qstring.h"
-
 QObject *qobject_from_json(const char *string, Error **errp);
 QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2);
 QObject *qobject_from_jsonv(const char *string, va_list *ap, Error **errp)
index a22d911087529fd580887640ad9e02d938800920..d7f35498d589df8e57287965f0c68413f0b0b955 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -56,6 +56,7 @@
 #include "qapi/qmp/qerror.h"
 #include "qapi/qmp/qbool.h"
 #include "qapi/qmp/qnum.h"
+#include "qapi/qmp/qstring.h"
 #include "qapi/qmp/qjson.h"
 #include "qapi/qmp/json-streamer.h"
 #include "qapi/qmp/json-parser.h"
index 3566eed3653027187d3a79f118c65bd98b01d4ae..023317b05fc48eb50e28265cca61a21fcc9baaa8 100644 (file)
@@ -26,6 +26,7 @@
 #include "qapi/qmp/qlist.h"
 #include "qapi/qmp/qnull.h"
 #include "qapi/qmp/qnum.h"
+#include "qapi/qmp/qstring.h"
 #include "qemu/cutils.h"
 #include "qemu/option.h"
 
index c6bcfcd83e51b0734c97be08ece15239165a603b..a85eb3536eb3c5bf6e7a00750a9c8e325749352b 100644 (file)
@@ -32,6 +32,7 @@
 #include "qapi/qmp/qjson.h"
 #include "qapi/qmp/qbool.h"
 #include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qstring.h"
 #include "qemu/cutils.h"
 #include "qemu/config-file.h"
 #include "qemu/option.h"
index 72406a3c235af12ede5ef882bfbe99e102019650..aa8e00c653a477022d6a41923ce605a350598710 100644 (file)
@@ -22,6 +22,7 @@
 #include "qapi/qmp/json-parser.h"
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qjson.h"
+#include "qapi/qmp/qstring.h"
 #include "qga/guest-agent-core.h"
 #include "qemu/module.h"
 #include "qga-qmp-commands.h"
index 77f796bbee5b47b9b7ff6bc7d46c90744f14c957..e1ce75651cc5b28a3d4c89750a3a54765b287217 100644 (file)
@@ -21,6 +21,7 @@
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qlist.h"
 #include "qapi/qmp/qnum.h"
+#include "qapi/qmp/qstring.h"
 #include "qemu/unicode.h"
 
 typedef struct JSONParsingState
index 26f5d4401e77b0e769572c6e2dd86d8b95ffc64c..a18ea47cb74f561675f215e25024b05016c47b53 100644 (file)
@@ -19,6 +19,7 @@
 #include "qapi/qmp/qlit.h"
 #include "qapi/qmp/qnull.h"
 #include "qapi/qmp/qnum.h"
+#include "qapi/qmp/qstring.h"
 #include "qemu-common.h"
 
 static void escaped_string(void)
index b65374c6347a1970cc4db602845e2d1aa1cb593f..f2c285374b06b0185342209aa9239010712fbf03 100644 (file)
@@ -27,6 +27,7 @@
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qjson.h"
 #include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qstring.h"
 
 #define MAX_IRQ 256
 #define SOCKET_TIMEOUT 50
index 2e6f7f422fbaebf869148d6df1e9e13230901e27..3900be26101302100e27922770927565b6cb1fa5 100644 (file)
@@ -21,6 +21,7 @@
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qnull.h"
 #include "qapi/qmp/qnum.h"
+#include "qapi/qmp/qstring.h"
 #include "qapi/qmp/qjson.h"
 #include "test-qmp-introspect.h"
 #include "qmp-introspect.h"
index 09a56d2d06670d4932cc0c7054c5692e8e6bb6f7..1b8a9ee372b5be8b7fe44ad712c225fd2c82a386 100644 (file)
@@ -21,6 +21,7 @@
 #include "qapi/qmp/qlist.h"
 #include "qapi/qmp/qnull.h"
 #include "qapi/qmp/qnum.h"
+#include "qapi/qmp/qstring.h"
 #include "qapi/qmp/qjson.h"
 
 typedef struct TestOutputVisitorData {
index 928a82b2e65a6b75ed4ef6e3a98b4e7d4c54e994..dd7e51d4f5d0ac8150302c4d7879ad06dfab06ee 100644 (file)
@@ -18,6 +18,7 @@
 #include "test-qapi-visit.h"
 #include "qapi/error.h"
 #include "qapi/qmp/qjson.h"
+#include "qapi/qmp/qstring.h"
 #include "qapi/qobject-input-visitor.h"
 #include "qapi/qobject-output-visitor.h"
 #include "qapi/string-input-visitor.h"
index 7a53db070c73202f50df68630ab96afcb2881a0e..c4d67e678c4260c9d5adb749ae2a57013d71b7b2 100644 (file)
@@ -32,7 +32,6 @@
 #include "qmp-commands.h"
 #include "qapi/error.h"
 #include "qapi/qmp/qbool.h"
-#include "qapi/qmp/qstring.h"
 #include "qapi/qmp/qjson.h"
 #include "qemu/notify.h"
 #include "migration/misc.h"