Skip to content

Commit

Permalink
qapi: move inclusions of qemu-common.h from headers to .c files
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Dec 19, 2012
1 parent 28ecbae commit 79ee7df
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions qapi/opts-visitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*
*/

#include "qemu-common.h"
#include "opts-visitor.h"
#include "qemu-queue.h"
#include "qemu-option-internal.h"
Expand Down
1 change: 0 additions & 1 deletion qapi/qapi-types-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#ifndef QAPI_TYPES_CORE_H
#define QAPI_TYPES_CORE_H

#include "qemu-common.h"
#include "error.h"
#include "qerror.h"

Expand Down
1 change: 1 addition & 0 deletions qapi/qapi-visit-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*
*/

#include "qemu-common.h"
#include "qapi/qapi-visit-core.h"
#include "qapi/qapi-visit-impl.h"

Expand Down
2 changes: 2 additions & 0 deletions qemu-error.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions scripts/qapi-commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions scripts/qapi-visit.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ def maybe_open(really, name, opt):
*
*/
#include "qemu-common.h"
#include "%(header)s"
''',
header=basename(h_file)))
Expand Down
1 change: 1 addition & 0 deletions tests/test-qmp-commands.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 1 addition & 0 deletions tests/test-qmp-input-strict.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions tests/test-qmp-input-visitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions tests/test-qmp-output-visitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions tests/test-string-input-visitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions tests/test-string-output-visitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions tests/test-visitor-serialization.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 79ee7df

Please sign in to comment.