qapi: move inclusions of qemu-common.h from headers to .c files
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
28ecbaeecb
commit
79ee7df885
@ -10,6 +10,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "opts-visitor.h"
|
||||
#include "qemu-queue.h"
|
||||
#include "qemu-option-internal.h"
|
||||
|
@ -14,7 +14,6 @@
|
||||
#ifndef QAPI_TYPES_CORE_H
|
||||
#define QAPI_TYPES_CORE_H
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "error.h"
|
||||
#include "qerror.h"
|
||||
|
||||
|
@ -11,6 +11,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "qapi/qapi-visit-core.h"
|
||||
#include "qapi/qapi-visit-impl.h"
|
||||
|
||||
|
@ -13,6 +13,8 @@
|
||||
#ifndef QEMU_ERROR_H
|
||||
#define QEMU_ERROR_H
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
typedef struct Location {
|
||||
/* all members are private to qemu-error.c */
|
||||
enum { LOC_NONE, LOC_CMDLINE, LOC_FILE } kind;
|
||||
|
@ -366,6 +366,7 @@ def gen_command_def_prologue(prefix="", proxy=False):
|
||||
*
|
||||
*/
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "qemu-objects.h"
|
||||
#include "qapi/qmp-core.h"
|
||||
#include "qapi/qapi-visit-core.h"
|
||||
|
@ -298,6 +298,7 @@ fdef.write(mcgen('''
|
||||
*
|
||||
*/
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "%(header)s"
|
||||
''',
|
||||
header=basename(h_file)))
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <glib.h>
|
||||
#include "qemu-common.h"
|
||||
#include "qemu-objects.h"
|
||||
#include "test-qmp-commands.h"
|
||||
#include "qapi/qmp-core.h"
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <glib.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "qapi/qmp-input-visitor.h"
|
||||
#include "test-qapi-types.h"
|
||||
#include "test-qapi-visit.h"
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <glib.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "qapi/qmp-input-visitor.h"
|
||||
#include "test-qapi-types.h"
|
||||
#include "test-qapi-visit.h"
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "qapi/qmp-output-visitor.h"
|
||||
#include "test-qapi-types.h"
|
||||
#include "test-qapi-visit.h"
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <glib.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "qapi/string-input-visitor.h"
|
||||
#include "test-qapi-types.h"
|
||||
#include "test-qapi-visit.h"
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "qapi/string-output-visitor.h"
|
||||
#include "test-qapi-types.h"
|
||||
#include "test-qapi-visit.h"
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <float.h>
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "test-qapi-types.h"
|
||||
#include "test-qapi-visit.h"
|
||||
#include "qemu-objects.h"
|
||||
|
Loading…
Reference in New Issue
Block a user