diff options
author | Markus Armbruster <armbru@redhat.com> | 2018-02-01 12:18:35 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2018-02-09 13:52:15 +0100 |
commit | 6b67395762a4c8b6ca94364e0a0f616a6470c46a (patch) | |
tree | 6ca3237d7c98a02499507f9c3c01ed09a764be7c /tests | |
parent | 9f5c734d591e26186a71f9e36d752f4798df3672 (diff) | |
download | qemu-6b67395762a4c8b6ca94364e0a0f616a6470c46a.zip qemu-6b67395762a4c8b6ca94364e0a0f616a6470c46a.tar.gz qemu-6b67395762a4c8b6ca94364e0a0f616a6470c46a.tar.bz2 |
Eliminate qapi/qmp/types.h
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check-qjson.c | 2 | ||||
-rw-r--r-- | tests/check-qobject.c | 3 | ||||
-rw-r--r-- | tests/cpu-plug-test.c | 1 | ||||
-rw-r--r-- | tests/qom-test.c | 1 | ||||
-rw-r--r-- | tests/test-clone-visitor.c | 1 | ||||
-rw-r--r-- | tests/test-qmp-commands.c | 3 | ||||
-rw-r--r-- | tests/test-qmp-event.c | 3 | ||||
-rw-r--r-- | tests/test-qobject-input-visitor.c | 2 | ||||
-rw-r--r-- | tests/test-qobject-output-visitor.c | 2 | ||||
-rw-r--r-- | tests/test-string-input-visitor.c | 1 | ||||
-rw-r--r-- | tests/test-string-output-visitor.c | 1 | ||||
-rw-r--r-- | tests/test-visitor-serialization.c | 1 |
12 files changed, 9 insertions, 12 deletions
diff --git a/tests/check-qjson.c b/tests/check-qjson.c index 5922793..7881009 100644 --- a/tests/check-qjson.c +++ b/tests/check-qjson.c @@ -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" diff --git a/tests/check-qobject.c b/tests/check-qobject.c index 710f9e6..06b9c6e 100644 --- a/tests/check-qobject.c +++ b/tests/check-qobject.c @@ -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> diff --git a/tests/cpu-plug-test.c b/tests/cpu-plug-test.c index 05d82f7..65456c9 100644 --- a/tests/cpu-plug-test.c +++ b/tests/cpu-plug-test.c @@ -11,7 +11,6 @@ #include "qemu-common.h" #include "libqtest.h" -#include "qapi/qmp/types.h" struct PlugTestData { char *machine; diff --git a/tests/qom-test.c b/tests/qom-test.c index ab0595d..0ee9907 100644 --- a/tests/qom-test.c +++ b/tests/qom-test.c @@ -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 diff --git a/tests/test-clone-visitor.c b/tests/test-clone-visitor.c index 6b6d4aa..9aeaf86 100644 --- a/tests/test-clone-visitor.c +++ b/tests/test-clone-visitor.c @@ -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) { diff --git a/tests/test-qmp-commands.c b/tests/test-qmp-commands.c index 52c1802..4794d1a 100644 --- a/tests/test-qmp-commands.c +++ b/tests/test-qmp-commands.c @@ -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" diff --git a/tests/test-qmp-event.c b/tests/test-qmp-event.c index 5be2d8e..b197dff 100644 --- a/tests/test-qmp-event.c +++ b/tests/test-qmp-event.c @@ -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 { diff --git a/tests/test-qobject-input-visitor.c b/tests/test-qobject-input-visitor.c index ade6062..9640599 100644 --- a/tests/test-qobject-input-visitor.c +++ b/tests/test-qobject-input-visitor.c @@ -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" diff --git a/tests/test-qobject-output-visitor.c b/tests/test-qobject-output-visitor.c index 1cff769..a0b7fe6 100644 --- a/tests/test-qobject-output-visitor.c +++ b/tests/test-qobject-output-visitor.c @@ -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 { diff --git a/tests/test-string-input-visitor.c b/tests/test-string-input-visitor.c index 4473944..88e0e1a 100644 --- a/tests/test-string-input-visitor.c +++ b/tests/test-string-input-visitor.c @@ -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; diff --git a/tests/test-string-output-visitor.c b/tests/test-string-output-visitor.c index facb76f..fa4b4ca 100644 --- a/tests/test-string-output-visitor.c +++ b/tests/test-string-output-visitor.c @@ -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; diff --git a/tests/test-visitor-serialization.c b/tests/test-visitor-serialization.c index a3407d2..928a82b 100644 --- a/tests/test-visitor-serialization.c +++ b/tests/test-visitor-serialization.c @@ -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" |