mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
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>
This commit is contained in:
parent
9f5c734d59
commit
6b67395762
31 changed files with 30 additions and 54 deletions
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
#include "qemu-common.h"
|
||||
#include "libqtest.h"
|
||||
#include "qapi/qmp/types.h"
|
||||
|
||||
struct PlugTestData {
|
||||
char *machine;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue