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,7 +31,8 @@
|
|||||||
#include "qapi-visit.h"
|
#include "qapi-visit.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qobject-output-visitor.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 "sysemu/block-backend.h"
|
||||||
#include "qemu/cutils.h"
|
#include "qemu/cutils.h"
|
||||||
|
|
||||||
|
@ -32,7 +32,8 @@
|
|||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qmp/qerror.h"
|
#include "qapi/qmp/qerror.h"
|
||||||
#include "qapi/qmp/qbool.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 "qapi-event.h"
|
||||||
#include "trace.h"
|
#include "trace.h"
|
||||||
#include "qemu/option_int.h"
|
#include "qemu/option_int.h"
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
#include "qemu/error-report.h"
|
#include "qemu/error-report.h"
|
||||||
#include "qemu/option.h"
|
#include "qemu/option.h"
|
||||||
#include "qemu/config-file.h"
|
#include "qemu/config-file.h"
|
||||||
#include "qapi/qmp/types.h"
|
#include "qapi/qmp/qstring.h"
|
||||||
#include "qapi-visit.h"
|
#include "qapi-visit.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qmp/qerror.h"
|
#include "qapi/qmp/qerror.h"
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "sysemu/sysemu.h"
|
#include "sysemu/sysemu.h"
|
||||||
#include "qapi/qmp/types.h"
|
|
||||||
#include "qapi/qmp/qjson.h"
|
#include "qapi/qmp/qjson.h"
|
||||||
#include "monitor/monitor.h"
|
#include "monitor/monitor.h"
|
||||||
#include "hw/pci/pci_bridge.h"
|
#include "hw/pci/pci_bridge.h"
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
#include "qemu/config-file.h"
|
#include "qemu/config-file.h"
|
||||||
#include "qemu/queue.h"
|
#include "qemu/queue.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qmp/types.h"
|
|
||||||
#include "sysemu/sysemu.h"
|
#include "sysemu/sysemu.h"
|
||||||
#include "sysemu/watchdog.h"
|
#include "sysemu/watchdog.h"
|
||||||
#include "qapi-event.h"
|
#include "qapi-event.h"
|
||||||
|
@ -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 */
|
|
@ -53,7 +53,7 @@
|
|||||||
#include "qemu/acl.h"
|
#include "qemu/acl.h"
|
||||||
#include "sysemu/tpm.h"
|
#include "sysemu/tpm.h"
|
||||||
#include "qapi/qmp/qerror.h"
|
#include "qapi/qmp/qerror.h"
|
||||||
#include "qapi/qmp/types.h"
|
#include "qapi/qmp/qbool.h"
|
||||||
#include "qapi/qmp/qjson.h"
|
#include "qapi/qmp/qjson.h"
|
||||||
#include "qapi/qmp/json-streamer.h"
|
#include "qapi/qmp/json-streamer.h"
|
||||||
#include "qapi/qmp/json-parser.h"
|
#include "qapi/qmp/json-parser.h"
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#include "qapi/dealloc-visitor.h"
|
#include "qapi/dealloc-visitor.h"
|
||||||
#include "qemu/queue.h"
|
#include "qemu/queue.h"
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "qapi/qmp/types.h"
|
|
||||||
#include "qapi/visitor-impl.h"
|
#include "qapi/visitor-impl.h"
|
||||||
|
|
||||||
struct QapiDeallocVisitor
|
struct QapiDeallocVisitor
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qmp/types.h"
|
|
||||||
#include "qapi/qmp/dispatch.h"
|
#include "qapi/qmp/dispatch.h"
|
||||||
#include "qapi/qmp/json-parser.h"
|
#include "qapi/qmp/json-parser.h"
|
||||||
#include "qapi/qmp/qjson.h"
|
#include "qapi/qmp/qjson.h"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#include "qemu/queue.h"
|
#include "qemu/queue.h"
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "qapi/qmp/qjson.h"
|
#include "qapi/qmp/qjson.h"
|
||||||
#include "qapi/qmp/types.h"
|
#include "qapi/qmp/qbool.h"
|
||||||
#include "qapi/qmp/qerror.h"
|
#include "qapi/qmp/qerror.h"
|
||||||
#include "qemu/cutils.h"
|
#include "qemu/cutils.h"
|
||||||
#include "qemu/option.h"
|
#include "qemu/option.h"
|
||||||
|
@ -17,7 +17,8 @@
|
|||||||
#include "qapi/visitor-impl.h"
|
#include "qapi/visitor-impl.h"
|
||||||
#include "qemu/queue.h"
|
#include "qemu/queue.h"
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "qapi/qmp/types.h"
|
#include "qapi/qmp/qbool.h"
|
||||||
|
#include "qapi/qmp/qstring.h"
|
||||||
|
|
||||||
typedef struct QStackEntry {
|
typedef struct QStackEntry {
|
||||||
QObject *value;
|
QObject *value;
|
||||||
|
@ -15,7 +15,8 @@
|
|||||||
#include "qemu/cutils.h"
|
#include "qemu/cutils.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qemu-common.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-parser.h"
|
||||||
#include "qapi/qmp/json-lexer.h"
|
#include "qapi/qmp/json-lexer.h"
|
||||||
#include "qapi/qmp/json-streamer.h"
|
#include "qapi/qmp/json-streamer.h"
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#include "qapi/qmp/json-parser.h"
|
#include "qapi/qmp/json-parser.h"
|
||||||
#include "qapi/qmp/json-streamer.h"
|
#include "qapi/qmp/json-streamer.h"
|
||||||
#include "qapi/qmp/qjson.h"
|
#include "qapi/qmp/qjson.h"
|
||||||
#include "qapi/qmp/types.h"
|
#include "qapi/qmp/qbool.h"
|
||||||
#include "qemu/unicode.h"
|
#include "qemu/unicode.h"
|
||||||
|
|
||||||
typedef struct JSONParsingState
|
typedef struct JSONParsingState
|
||||||
|
@ -16,7 +16,9 @@
|
|||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
|
|
||||||
#include "qapi/qmp/qlit.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)
|
static bool qlit_equal_qdict(const QLitObject *lhs, const QDict *qdict)
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,9 @@
|
|||||||
|
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "qemu-common.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 *) = {
|
static void (*qdestroy[QTYPE__MAX])(QObject *) = {
|
||||||
[QTYPE_NONE] = NULL, /* No such object exists */
|
[QTYPE_NONE] = NULL, /* No such object exists */
|
||||||
|
@ -293,7 +293,6 @@ fdef.write(mcgen('''
|
|||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "qemu/module.h"
|
#include "qemu/module.h"
|
||||||
#include "qapi/qmp/types.h"
|
|
||||||
#include "qapi/visitor.h"
|
#include "qapi/visitor.h"
|
||||||
#include "qapi/qobject-output-visitor.h"
|
#include "qapi/qobject-output-visitor.h"
|
||||||
#include "qapi/qobject-input-visitor.h"
|
#include "qapi/qobject-input-visitor.h"
|
||||||
|
@ -32,7 +32,6 @@
|
|||||||
#include "qemu/config-file.h"
|
#include "qemu/config-file.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qmp/qerror.h"
|
#include "qapi/qmp/qerror.h"
|
||||||
#include "qapi/qmp/types.h"
|
|
||||||
|
|
||||||
#include "qapi-visit.h"
|
#include "qapi-visit.h"
|
||||||
#include "qapi/visitor.h"
|
#include "qapi/visitor.h"
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
|
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qmp/types.h"
|
#include "qapi/qmp/qbool.h"
|
||||||
#include "qapi/qmp/qjson.h"
|
#include "qapi/qmp/qjson.h"
|
||||||
#include "qapi/qmp/qlit.h"
|
#include "qapi/qmp/qlit.h"
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
*/
|
*/
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
|
|
||||||
#include "qapi/qmp/types.h"
|
#include "qapi/qmp/qbool.h"
|
||||||
|
#include "qapi/qmp/qstring.h"
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "libqtest.h"
|
#include "libqtest.h"
|
||||||
#include "qapi/qmp/types.h"
|
|
||||||
|
|
||||||
struct PlugTestData {
|
struct PlugTestData {
|
||||||
char *machine;
|
char *machine;
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "qemu/cutils.h"
|
#include "qemu/cutils.h"
|
||||||
#include "libqtest.h"
|
#include "libqtest.h"
|
||||||
#include "qapi/qmp/types.h"
|
|
||||||
|
|
||||||
static const char *blacklist_x86[] = {
|
static const char *blacklist_x86[] = {
|
||||||
"xenfv", "xenpv", NULL
|
"xenfv", "xenpv", NULL
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "qapi/clone-visitor.h"
|
#include "qapi/clone-visitor.h"
|
||||||
#include "test-qapi-visit.h"
|
#include "test-qapi-visit.h"
|
||||||
#include "qapi/qmp/types.h"
|
|
||||||
|
|
||||||
static void test_clone_struct(void)
|
static void test_clone_struct(void)
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "qemu-common.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 "test-qmp-commands.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qmp/dispatch.h"
|
#include "qapi/qmp/dispatch.h"
|
||||||
|
@ -17,8 +17,9 @@
|
|||||||
#include "test-qapi-visit.h"
|
#include "test-qapi-visit.h"
|
||||||
#include "test-qapi-event.h"
|
#include "test-qapi-event.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qmp/types.h"
|
#include "qapi/qmp/qbool.h"
|
||||||
#include "qapi/qmp/qobject.h"
|
#include "qapi/qmp/qobject.h"
|
||||||
|
#include "qapi/qmp/qstring.h"
|
||||||
#include "qapi/qmp-event.h"
|
#include "qapi/qmp-event.h"
|
||||||
|
|
||||||
typedef struct TestEventData {
|
typedef struct TestEventData {
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qobject-input-visitor.h"
|
#include "qapi/qobject-input-visitor.h"
|
||||||
#include "test-qapi-visit.h"
|
#include "test-qapi-visit.h"
|
||||||
#include "qapi/qmp/types.h"
|
#include "qapi/qmp/qbool.h"
|
||||||
#include "qapi/qmp/qjson.h"
|
#include "qapi/qmp/qjson.h"
|
||||||
#include "test-qmp-introspect.h"
|
#include "test-qmp-introspect.h"
|
||||||
#include "qmp-introspect.h"
|
#include "qmp-introspect.h"
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qobject-output-visitor.h"
|
#include "qapi/qobject-output-visitor.h"
|
||||||
#include "test-qapi-visit.h"
|
#include "test-qapi-visit.h"
|
||||||
#include "qapi/qmp/types.h"
|
#include "qapi/qmp/qbool.h"
|
||||||
#include "qapi/qmp/qjson.h"
|
#include "qapi/qmp/qjson.h"
|
||||||
|
|
||||||
typedef struct TestOutputVisitorData {
|
typedef struct TestOutputVisitorData {
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/string-input-visitor.h"
|
#include "qapi/string-input-visitor.h"
|
||||||
#include "test-qapi-visit.h"
|
#include "test-qapi-visit.h"
|
||||||
#include "qapi/qmp/types.h"
|
|
||||||
|
|
||||||
typedef struct TestInputVisitorData {
|
typedef struct TestInputVisitorData {
|
||||||
Visitor *v;
|
Visitor *v;
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/string-output-visitor.h"
|
#include "qapi/string-output-visitor.h"
|
||||||
#include "test-qapi-visit.h"
|
#include "test-qapi-visit.h"
|
||||||
#include "qapi/qmp/types.h"
|
|
||||||
|
|
||||||
typedef struct TestOutputVisitorData {
|
typedef struct TestOutputVisitorData {
|
||||||
Visitor *ov;
|
Visitor *ov;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "test-qapi-visit.h"
|
#include "test-qapi-visit.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qmp/types.h"
|
|
||||||
#include "qapi/qmp/qjson.h"
|
#include "qapi/qmp/qjson.h"
|
||||||
#include "qapi/qobject-input-visitor.h"
|
#include "qapi/qobject-input-visitor.h"
|
||||||
#include "qapi/qobject-output-visitor.h"
|
#include "qapi/qobject-output-visitor.h"
|
||||||
|
1
ui/vnc.c
1
ui/vnc.c
@ -35,7 +35,6 @@
|
|||||||
#include "qemu/acl.h"
|
#include "qemu/acl.h"
|
||||||
#include "qemu/config-file.h"
|
#include "qemu/config-file.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qmp/types.h"
|
|
||||||
#include "qmp-commands.h"
|
#include "qmp-commands.h"
|
||||||
#include "ui/input.h"
|
#include "ui/input.h"
|
||||||
#include "qapi-event.h"
|
#include "qapi-event.h"
|
||||||
|
@ -28,7 +28,9 @@
|
|||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "qemu/error-report.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 "qapi/qmp/qerror.h"
|
||||||
#include "qemu/option_int.h"
|
#include "qemu/option_int.h"
|
||||||
#include "qemu/cutils.h"
|
#include "qemu/cutils.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user