qapi: Clean up includes

Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1454089805-5470-8-git-send-email-peter.maydell@linaro.org
This commit is contained in:
Peter Maydell 2016-01-29 17:49:57 +00:00
parent 48d4ab25e7
commit cbf2115190
11 changed files with 11 additions and 4 deletions

View File

@ -10,6 +10,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/qmp/qerror.h" #include "qapi/qmp/qerror.h"
#include "qapi/opts-visitor.h" #include "qapi/opts-visitor.h"

View File

@ -11,6 +11,7 @@
* *
*/ */
#include "qemu/osdep.h"
#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"

View File

@ -10,8 +10,8 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/error.h"
#include "qapi/util.h" #include "qapi/util.h"
int qapi_enum_parse(const char * const lookup[], const char *buf, int qapi_enum_parse(const char * const lookup[], const char *buf,

View File

@ -11,6 +11,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/qmp/qobject.h" #include "qapi/qmp/qobject.h"
#include "qapi/qmp/qerror.h" #include "qapi/qmp/qerror.h"

View File

@ -11,11 +11,11 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qapi/qmp/types.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-types.h" #include "qapi-types.h"
#include "qapi/error.h"
#include "qapi/qmp/qerror.h" #include "qapi/qmp/qerror.h"
static QDict *qmp_dispatch_check_obj(const QObject *request, Error **errp) static QDict *qmp_dispatch_check_obj(const QObject *request, Error **errp)

View File

@ -11,7 +11,7 @@
* *
*/ */
#include <inttypes.h> #include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/qmp-event.h" #include "qapi/qmp-event.h"

View File

@ -11,6 +11,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qapi/qmp-input-visitor.h" #include "qapi/qmp-input-visitor.h"
#include "qapi/visitor-impl.h" #include "qapi/visitor-impl.h"
#include "qemu/queue.h" #include "qemu/queue.h"

View File

@ -11,6 +11,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qapi/qmp-output-visitor.h" #include "qapi/qmp-output-visitor.h"
#include "qapi/visitor-impl.h" #include "qapi/visitor-impl.h"
#include "qemu/queue.h" #include "qemu/queue.h"

View File

@ -12,8 +12,8 @@
* *
*/ */
#include "qemu/osdep.h"
#include <glib.h> #include <glib.h>
#include <string.h>
#include "qapi/qmp/dispatch.h" #include "qapi/qmp/dispatch.h"
static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands = static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands =

View File

@ -10,6 +10,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/string-input-visitor.h" #include "qapi/string-input-visitor.h"
#include "qapi/visitor-impl.h" #include "qapi/visitor-impl.h"

View File

@ -10,6 +10,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/string-output-visitor.h" #include "qapi/string-output-visitor.h"
#include "qapi/visitor-impl.h" #include "qapi/visitor-impl.h"