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:
Paolo Bonzini 2012-12-06 11:22:34 +01:00
parent 28ecbaeecb
commit 79ee7df885
13 changed files with 14 additions and 1 deletions

View File

@ -10,6 +10,7 @@
*
*/
#include "qemu-common.h"
#include "opts-visitor.h"
#include "qemu-queue.h"
#include "qemu-option-internal.h"

View File

@ -14,7 +14,6 @@
#ifndef QAPI_TYPES_CORE_H
#define QAPI_TYPES_CORE_H
#include "qemu-common.h"
#include "error.h"
#include "qerror.h"

View File

@ -11,6 +11,7 @@
*
*/
#include "qemu-common.h"
#include "qapi/qapi-visit-core.h"
#include "qapi/qapi-visit-impl.h"

View File

@ -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;

View File

@ -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"

View File

@ -298,6 +298,7 @@ fdef.write(mcgen('''
*
*/
#include "qemu-common.h"
#include "%(header)s"
''',
header=basename(h_file)))

View 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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"