]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
Eliminate qapi/qmp/types.h
authorMarkus Armbruster <armbru@redhat.com>
Thu, 1 Feb 2018 11:18:35 +0000 (12:18 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 9 Feb 2018 12:52:15 +0000 (13:52 +0100)
qapi/qmp/types.h is a convenience header to include a number of
qapi/qmp/ headers.  Since we rarely need all of the headers
qapi/qmp/types.h includes, we bypass it most of the time.  Most of the
places that use it don't need all the headers, either.

Include the necessary headers directly, and drop qapi/qmp/types.h.

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-9-armbru@redhat.com>

31 files changed:
block/qapi.c
block/qcow2.c
blockdev.c
hw/pci/pcie_aer.c
hw/watchdog/watchdog.c
include/qapi/qmp/types.h [deleted file]
monitor.c
qapi/qapi-dealloc-visitor.c
qapi/qmp-dispatch.c
qapi/qobject-input-visitor.c
qapi/qobject-output-visitor.c
qobject/json-parser.c
qobject/qjson.c
qobject/qlit.c
qobject/qobject.c
scripts/qapi-commands.py
target/i386/cpu.c
tests/check-qjson.c
tests/check-qobject.c
tests/cpu-plug-test.c
tests/qom-test.c
tests/test-clone-visitor.c
tests/test-qmp-commands.c
tests/test-qmp-event.c
tests/test-qobject-input-visitor.c
tests/test-qobject-output-visitor.c
tests/test-string-input-visitor.c
tests/test-string-output-visitor.c
tests/test-visitor-serialization.c
ui/vnc.c
util/qemu-option.c

index 4fc9fd8082c4c63830ec15032932d4efa52dc8b2..1ab437251927220217d6040ea1b9c3b0faba2461 100644 (file)
@@ -31,7 +31,8 @@
 #include "qapi-visit.h"
 #include "qapi/error.h"
 #include "qapi/qobject-output-visitor.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qstring.h"
 #include "sysemu/block-backend.h"
 #include "qemu/cutils.h"
 
index 7645b3c6aeb9c167925c211e53b052bf49f620b1..700c06245bc25a5f8d167efe89384e9ec323b099 100644 (file)
@@ -32,7 +32,8 @@
 #include "qapi/error.h"
 #include "qapi/qmp/qerror.h"
 #include "qapi/qmp/qbool.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qstring.h"
 #include "qapi-event.h"
 #include "trace.h"
 #include "qemu/option_int.h"
index ad82dbbeee55b4939ada42779d12deafc415b35d..8a474599379756ff57d41630ca64032f781ad553 100644 (file)
@@ -40,7 +40,7 @@
 #include "qemu/error-report.h"
 #include "qemu/option.h"
 #include "qemu/config-file.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qstring.h"
 #include "qapi-visit.h"
 #include "qapi/error.h"
 #include "qapi/qmp/qerror.h"
index b009be7f17d1a5f4302229161296f2e9706f39b6..071e5e9bbb27264395160e70c4091021ad6bb58f 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "qemu/osdep.h"
 #include "sysemu/sysemu.h"
-#include "qapi/qmp/types.h"
 #include "qapi/qmp/qjson.h"
 #include "monitor/monitor.h"
 #include "hw/pci/pci_bridge.h"
index 25dcb25ff15e5e91150c8dce4d3e3ef97db59aa1..98a5dd6689e62543bb9de75fcda9f53eee7be7d5 100644 (file)
@@ -24,7 +24,6 @@
 #include "qemu/config-file.h"
 #include "qemu/queue.h"
 #include "qapi/error.h"
-#include "qapi/qmp/types.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/watchdog.h"
 #include "qapi-event.h"
diff --git a/include/qapi/qmp/types.h b/include/qapi/qmp/types.h
deleted file mode 100644 (file)
index 749ac44..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Include all QEMU objects.
- *
- * Copyright (C) 2009 Red Hat Inc.
- *
- * Authors:
- *  Luiz Capitulino <lcapitulino@redhat.com>
- *
- * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
- * See the COPYING.LIB file in the top-level directory.
- */
-
-#ifndef QAPI_QMP_TYPES_H
-#define QAPI_QMP_TYPES_H
-
-#include "qapi/qmp/qobject.h"
-#include "qapi/qmp/qnum.h"
-#include "qapi/qmp/qbool.h"
-#include "qapi/qmp/qstring.h"
-#include "qapi/qmp/qdict.h"
-#include "qapi/qmp/qlist.h"
-#include "qapi/qmp/qnull.h"
-
-#endif /* QAPI_QMP_TYPES_H */
index 2de69f648febca82fdf4ac30456857130f0e58b6..f38640c1e46dcd387efa54a0efbbcb23a68cd728 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -53,7 +53,7 @@
 #include "qemu/acl.h"
 #include "sysemu/tpm.h"
 #include "qapi/qmp/qerror.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qbool.h"
 #include "qapi/qmp/qjson.h"
 #include "qapi/qmp/json-streamer.h"
 #include "qapi/qmp/json-parser.h"
index ed70a0158b36df396c5f048fe58d052dfa119d6c..c7d5f80302c60118aa75a0dd926a3dce81a5afb3 100644 (file)
@@ -16,7 +16,6 @@
 #include "qapi/dealloc-visitor.h"
 #include "qemu/queue.h"
 #include "qemu-common.h"
-#include "qapi/qmp/types.h"
 #include "qapi/visitor-impl.h"
 
 struct QapiDeallocVisitor
index 8829c4a45a82b8753b17bd7cc46113577a03782a..92f957f40ed9eec0b6491c69f58637333b24e8d5 100644 (file)
@@ -13,7 +13,6 @@
 
 #include "qemu/osdep.h"
 #include "qapi/error.h"
-#include "qapi/qmp/types.h"
 #include "qapi/qmp/dispatch.h"
 #include "qapi/qmp/json-parser.h"
 #include "qapi/qmp/qjson.h"
index ee9e47d911cb11f9a1a4be24ad7ea36aaa327ca9..8fb34c472e1011b960aadd434d393a536568f7bb 100644 (file)
@@ -20,7 +20,7 @@
 #include "qemu/queue.h"
 #include "qemu-common.h"
 #include "qapi/qmp/qjson.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qbool.h"
 #include "qapi/qmp/qerror.h"
 #include "qemu/cutils.h"
 #include "qemu/option.h"
index d325163e55796b61aa0f93623e28d8ff398b80e3..60398765df0de48f78db6e0272a3105d0ba6169c 100644 (file)
@@ -17,7 +17,8 @@
 #include "qapi/visitor-impl.h"
 #include "qemu/queue.h"
 #include "qemu-common.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qstring.h"
 
 typedef struct QStackEntry {
     QObject *value;
index 724ca240e4faa0bda80912647c89fad08a1c959b..30dfb9dc4117268ee336e22780d85da62cf443fa 100644 (file)
@@ -15,7 +15,8 @@
 #include "qemu/cutils.h"
 #include "qapi/error.h"
 #include "qemu-common.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qstring.h"
 #include "qapi/qmp/json-parser.h"
 #include "qapi/qmp/json-lexer.h"
 #include "qapi/qmp/json-streamer.h"
index 2e0930884e5dc7224e879ef1567f18d85cd6558a..fe892132474fd902ea119146d97eed7412beeb05 100644 (file)
@@ -17,7 +17,7 @@
 #include "qapi/qmp/json-parser.h"
 #include "qapi/qmp/json-streamer.h"
 #include "qapi/qmp/qjson.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qbool.h"
 #include "qemu/unicode.h"
 
 typedef struct JSONParsingState
index 3c4882c78481d722f85c1222203cda2c52ea5775..dbf19225c8101051276f31d792d27072c86f3663 100644 (file)
@@ -16,7 +16,9 @@
 #include "qemu/osdep.h"
 
 #include "qapi/qmp/qlit.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qstring.h"
 
 static bool qlit_equal_qdict(const QLitObject *lhs, const QDict *qdict)
 {
index b2a536041ddaf496e843b5bd56de0bd84f82b393..9b61ece06b34587ae651c9cb25883d4fc8496d94 100644 (file)
@@ -9,7 +9,9 @@
 
 #include "qemu/osdep.h"
 #include "qemu-common.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qstring.h"
 
 static void (*qdestroy[QTYPE__MAX])(QObject *) = {
     [QTYPE_NONE] = NULL,               /* No such object exists */
index dc7c418923701c8555af42eab80cd8653c9681a6..26c56c506267b41f468617b3db76a7da527997f6 100644 (file)
@@ -293,7 +293,6 @@ fdef.write(mcgen('''
 #include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu/module.h"
-#include "qapi/qmp/types.h"
 #include "qapi/visitor.h"
 #include "qapi/qobject-output-visitor.h"
 #include "qapi/qobject-input-visitor.h"
index 03781938284a8211e487ad6146f47159fc1a412e..5cb63eae4135ab4e9f05f85f3b3d42740dd8c8e1 100644 (file)
@@ -32,7 +32,6 @@
 #include "qemu/config-file.h"
 #include "qapi/error.h"
 #include "qapi/qmp/qerror.h"
-#include "qapi/qmp/types.h"
 
 #include "qapi-visit.h"
 #include "qapi/visitor.h"
index 59227934ce11341cd69e017b4da62f900bddac53..7881009f1c516f90e1609f10d66f62ae943b20f4 100644 (file)
@@ -14,7 +14,7 @@
 #include "qemu/osdep.h"
 
 #include "qapi/error.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qbool.h"
 #include "qapi/qmp/qjson.h"
 #include "qapi/qmp/qlit.h"
 #include "qemu-common.h"
index 710f9e6b0ab2a94a34742b33d4cd44c3a862d4f5..06b9c6ec34a2023c11b4da21f2f070efb44e717c 100644 (file)
@@ -8,7 +8,8 @@
  */
 #include "qemu/osdep.h"
 
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qstring.h"
 #include "qemu-common.h"
 
 #include <math.h>
index 05d82f76c4cfe78eacc4b9f573eabd75274be927..65456c9e379bad68d0f2e1cd48ce1c338dc1d4c8 100644 (file)
@@ -11,7 +11,6 @@
 
 #include "qemu-common.h"
 #include "libqtest.h"
-#include "qapi/qmp/types.h"
 
 struct PlugTestData {
     char *machine;
index ab0595dc7509aaab91ef1148e9e4f62a42d3a1aa..0ee990710cc3e798af8231afe57aebfa748d2066 100644 (file)
@@ -12,7 +12,6 @@
 #include "qemu-common.h"
 #include "qemu/cutils.h"
 #include "libqtest.h"
-#include "qapi/qmp/types.h"
 
 static const char *blacklist_x86[] = {
     "xenfv", "xenpv", NULL
index 6b6d4aaebabd78c48d9f89976ef907396959dca7..9aeaf86a07de4e2085a29569764a35b6b4f38bd2 100644 (file)
@@ -12,7 +12,6 @@
 #include "qemu-common.h"
 #include "qapi/clone-visitor.h"
 #include "test-qapi-visit.h"
-#include "qapi/qmp/types.h"
 
 static void test_clone_struct(void)
 {
index 52c1802eaf5d37fb00cfb73c6006bde219ba6657..4794d1a9d8c34dbfd9a7a2628a5d73f6cadf20d4 100644 (file)
@@ -1,6 +1,7 @@
 #include "qemu/osdep.h"
 #include "qemu-common.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qstring.h"
 #include "test-qmp-commands.h"
 #include "qapi/error.h"
 #include "qapi/qmp/dispatch.h"
index 5be2d8efcf5863ed030f3542f18774b62afdcada..b197dff45352f257be8cbcd905ddefabd0f9645b 100644 (file)
@@ -17,8 +17,9 @@
 #include "test-qapi-visit.h"
 #include "test-qapi-event.h"
 #include "qapi/error.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qbool.h"
 #include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qstring.h"
 #include "qapi/qmp-event.h"
 
 typedef struct TestEventData {
index ade6062e2c2aee5162afa54febf571f201e44a0c..96405991bb0c6a8eb63bb072c55088d3f22c17e3 100644 (file)
@@ -17,7 +17,7 @@
 #include "qapi/error.h"
 #include "qapi/qobject-input-visitor.h"
 #include "test-qapi-visit.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qbool.h"
 #include "qapi/qmp/qjson.h"
 #include "test-qmp-introspect.h"
 #include "qmp-introspect.h"
index 1cff769b1514fecbdcecd1ca701213bed3e8c24b..a0b7fe6addb48d74a6356aa067e581444a3cd2c2 100644 (file)
@@ -16,7 +16,7 @@
 #include "qapi/error.h"
 #include "qapi/qobject-output-visitor.h"
 #include "test-qapi-visit.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qbool.h"
 #include "qapi/qmp/qjson.h"
 
 typedef struct TestOutputVisitorData {
index 4473944f3f9df3dd6326e9746648c7a5a9b3aaf6..88e0e1aa9aa6fe3ce71a6d23f4d04c48b852109c 100644 (file)
@@ -16,7 +16,6 @@
 #include "qapi/error.h"
 #include "qapi/string-input-visitor.h"
 #include "test-qapi-visit.h"
-#include "qapi/qmp/types.h"
 
 typedef struct TestInputVisitorData {
     Visitor *v;
index facb76ffc3b979e298c37292a2d82229ee38fee3..fa4b4ca28896f548a3113f9b333c1288ec2dee2c 100644 (file)
@@ -16,7 +16,6 @@
 #include "qapi/error.h"
 #include "qapi/string-output-visitor.h"
 #include "test-qapi-visit.h"
-#include "qapi/qmp/types.h"
 
 typedef struct TestOutputVisitorData {
     Visitor *ov;
index a3407d205d95553aa88ef83ed782605ba8cfea8e..928a82b2e65a6b75ed4ef6e3a98b4e7d4c54e994 100644 (file)
@@ -17,7 +17,6 @@
 #include "qemu-common.h"
 #include "test-qapi-visit.h"
 #include "qapi/error.h"
-#include "qapi/qmp/types.h"
 #include "qapi/qmp/qjson.h"
 #include "qapi/qobject-input-visitor.h"
 #include "qapi/qobject-output-visitor.h"
index 0f12799f38a243e6f4c04d7468c610d0867dd9ff..a34b1281930d21b8c79680837197b952ffc64ae6 100644 (file)
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -35,7 +35,6 @@
 #include "qemu/acl.h"
 #include "qemu/config-file.h"
 #include "qapi/error.h"
-#include "qapi/qmp/types.h"
 #include "qmp-commands.h"
 #include "ui/input.h"
 #include "qapi-event.h"
index 553d3dc552d280242ad3d929b3338a1195007779..d790c1b85a7c636e3e674d52f3132e2b40a490e6 100644 (file)
@@ -28,7 +28,9 @@
 #include "qapi/error.h"
 #include "qemu-common.h"
 #include "qemu/error-report.h"
-#include "qapi/qmp/types.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qstring.h"
 #include "qapi/qmp/qerror.h"
 #include "qemu/option_int.h"
 #include "qemu/cutils.h"