提交 79ee7df8 编写于 作者: P Paolo Bonzini

qapi: move inclusions of qemu-common.h from headers to .c files

Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 28ecbaee
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
* *
*/ */
#include "qemu-common.h"
#include "opts-visitor.h" #include "opts-visitor.h"
#include "qemu-queue.h" #include "qemu-queue.h"
#include "qemu-option-internal.h" #include "qemu-option-internal.h"
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#ifndef QAPI_TYPES_CORE_H #ifndef QAPI_TYPES_CORE_H
#define QAPI_TYPES_CORE_H #define QAPI_TYPES_CORE_H
#include "qemu-common.h"
#include "error.h" #include "error.h"
#include "qerror.h" #include "qerror.h"
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
* *
*/ */
#include "qemu-common.h"
#include "qapi/qapi-visit-core.h" #include "qapi/qapi-visit-core.h"
#include "qapi/qapi-visit-impl.h" #include "qapi/qapi-visit-impl.h"
......
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
#ifndef QEMU_ERROR_H #ifndef QEMU_ERROR_H
#define QEMU_ERROR_H #define QEMU_ERROR_H
#include <stdarg.h>
typedef struct Location { typedef struct Location {
/* all members are private to qemu-error.c */ /* all members are private to qemu-error.c */
enum { LOC_NONE, LOC_CMDLINE, LOC_FILE } kind; enum { LOC_NONE, LOC_CMDLINE, LOC_FILE } kind;
......
...@@ -366,6 +366,7 @@ def gen_command_def_prologue(prefix="", proxy=False): ...@@ -366,6 +366,7 @@ def gen_command_def_prologue(prefix="", proxy=False):
* *
*/ */
#include "qemu-common.h"
#include "qemu-objects.h" #include "qemu-objects.h"
#include "qapi/qmp-core.h" #include "qapi/qmp-core.h"
#include "qapi/qapi-visit-core.h" #include "qapi/qapi-visit-core.h"
......
...@@ -298,6 +298,7 @@ fdef.write(mcgen(''' ...@@ -298,6 +298,7 @@ fdef.write(mcgen('''
* *
*/ */
#include "qemu-common.h"
#include "%(header)s" #include "%(header)s"
''', ''',
header=basename(h_file))) header=basename(h_file)))
......
#include <glib.h> #include <glib.h>
#include "qemu-common.h"
#include "qemu-objects.h" #include "qemu-objects.h"
#include "test-qmp-commands.h" #include "test-qmp-commands.h"
#include "qapi/qmp-core.h" #include "qapi/qmp-core.h"
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <glib.h> #include <glib.h>
#include <stdarg.h> #include <stdarg.h>
#include "qemu-common.h"
#include "qapi/qmp-input-visitor.h" #include "qapi/qmp-input-visitor.h"
#include "test-qapi-types.h" #include "test-qapi-types.h"
#include "test-qapi-visit.h" #include "test-qapi-visit.h"
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <glib.h> #include <glib.h>
#include <stdarg.h> #include <stdarg.h>
#include "qemu-common.h"
#include "qapi/qmp-input-visitor.h" #include "qapi/qmp-input-visitor.h"
#include "test-qapi-types.h" #include "test-qapi-types.h"
#include "test-qapi-visit.h" #include "test-qapi-visit.h"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <glib.h> #include <glib.h>
#include "qemu-common.h"
#include "qapi/qmp-output-visitor.h" #include "qapi/qmp-output-visitor.h"
#include "test-qapi-types.h" #include "test-qapi-types.h"
#include "test-qapi-visit.h" #include "test-qapi-visit.h"
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <glib.h> #include <glib.h>
#include <stdarg.h> #include <stdarg.h>
#include "qemu-common.h"
#include "qapi/string-input-visitor.h" #include "qapi/string-input-visitor.h"
#include "test-qapi-types.h" #include "test-qapi-types.h"
#include "test-qapi-visit.h" #include "test-qapi-visit.h"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <glib.h> #include <glib.h>
#include "qemu-common.h"
#include "qapi/string-output-visitor.h" #include "qapi/string-output-visitor.h"
#include "test-qapi-types.h" #include "test-qapi-types.h"
#include "test-qapi-visit.h" #include "test-qapi-visit.h"
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
#include <float.h> #include <float.h>
#include "qemu-common.h"
#include "test-qapi-types.h" #include "test-qapi-types.h"
#include "test-qapi-visit.h" #include "test-qapi-visit.h"
#include "qemu-objects.h" #include "qemu-objects.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册