Skip to content

Commit

Permalink
qapi: move include files to include/qobject/
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Dec 19, 2012
1 parent cb9c377 commit 7b1b5d1
Show file tree
Hide file tree
Showing 119 changed files with 242 additions and 242 deletions.
2 changes: 1 addition & 1 deletion backends/rng-egd.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "qemu/rng.h"
#include "qemu-char.h"
#include "qerror.h"
#include "qapi/qmp/qerror.h"
#include "hw/qdev.h" /* just for DEFINE_PROP_CHR */

#define TYPE_RNG_EGD "rng-egd"
Expand Down
2 changes: 1 addition & 1 deletion backends/rng-random.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "qemu/rng-random.h"
#include "qemu/rng.h"
#include "qerror.h"
#include "qapi/qmp/qerror.h"
#include "main-loop.h"

struct RndRandom
Expand Down
2 changes: 1 addition & 1 deletion backends/rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

#include "qemu/rng.h"
#include "qerror.h"
#include "qapi/qmp/qerror.h"

void rng_backend_request_entropy(RngBackend *s, size_t size,
EntropyReceiveFunc *receive_entropy,
Expand Down
2 changes: 1 addition & 1 deletion balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "balloon.h"
#include "trace.h"
#include "qmp-commands.h"
#include "qjson.h"
#include "qapi/qmp/qjson.h"

static QEMUBalloonEvent *balloon_event_fn;
static QEMUBalloonStatus *balloon_stat_fn;
Expand Down
2 changes: 1 addition & 1 deletion block.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "block_int.h"
#include "blockjob.h"
#include "module.h"
#include "qjson.h"
#include "qapi/qmp/qjson.h"
#include "sysemu.h"
#include "notify.h"
#include "qemu-coroutine.h"
Expand Down
2 changes: 1 addition & 1 deletion block.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "qemu-common.h"
#include "qemu-option.h"
#include "qemu-coroutine.h"
#include "qobject.h"
#include "qapi/qmp/qobject.h"
#include "qapi-types.h"

/* block.c */
Expand Down
2 changes: 1 addition & 1 deletion block/qcow2.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "aes.h"
#include "block/qcow2.h"
#include "qemu-error.h"
#include "qerror.h"
#include "qapi/qmp/qerror.h"
#include "trace.h"

/*
Expand Down
2 changes: 1 addition & 1 deletion block/qed.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "qemu-timer.h"
#include "trace.h"
#include "qed.h"
#include "qerror.h"
#include "qapi/qmp/qerror.h"
#include "migration.h"

static void qed_aio_cancel(BlockDriverAIOCB *blockacb)
Expand Down
2 changes: 1 addition & 1 deletion block_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "qemu-coroutine.h"
#include "qemu-timer.h"
#include "qapi-types.h"
#include "qerror.h"
#include "qapi/qmp/qerror.h"
#include "monitor.h"

#define BLOCK_FLAG_ENCRYPT 1
Expand Down
2 changes: 1 addition & 1 deletion blockdev-nbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "blockdev.h"
#include "hw/block-common.h"
#include "monitor.h"
#include "qerror.h"
#include "qapi/qmp/qerror.h"
#include "sysemu.h"
#include "qmp-commands.h"
#include "trace.h"
Expand Down
4 changes: 2 additions & 2 deletions blockdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
#include "hw/block-common.h"
#include "blockjob.h"
#include "monitor.h"
#include "qerror.h"
#include "qapi/qmp/qerror.h"
#include "qemu-option.h"
#include "qemu-config.h"
#include "qemu-objects.h"
#include "qapi/qmp/types.h"
#include "sysemu.h"
#include "block_int.h"
#include "qmp-commands.h"
Expand Down
2 changes: 1 addition & 1 deletion blockdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define BLOCKDEV_H

#include "block.h"
#include "error.h"
#include "qapi/error.h"
#include "qemu-queue.h"

void blockdev_mark_auto_del(BlockDriverState *bs);
Expand Down
2 changes: 1 addition & 1 deletion blockjob.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "block.h"
#include "blockjob.h"
#include "block_int.h"
#include "qjson.h"
#include "qapi/qmp/qjson.h"
#include "qemu-coroutine.h"
#include "qmp-commands.h"
#include "qemu-timer.h"
Expand Down
2 changes: 1 addition & 1 deletion dump-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "qemu-common.h"
#include "dump.h"
#include "qerror.h"
#include "qapi/qmp/qerror.h"
#include "qmp-commands.h"

/* we need this function in hmp.c */
Expand Down
2 changes: 1 addition & 1 deletion dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "dump.h"
#include "sysemu.h"
#include "memory_mapping.h"
#include "error.h"
#include "qapi/error.h"
#include "qmp-commands.h"
#include "gdbstub.h"

Expand Down
8 changes: 4 additions & 4 deletions error.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
*/

#include "qemu-common.h"
#include "error.h"
#include "qjson.h"
#include "qdict.h"
#include "qapi/error.h"
#include "qapi/qmp/qjson.h"
#include "qapi/qmp/qdict.h"
#include "qapi-types.h"
#include "qerror.h"
#include "qapi/qmp/qerror.h"

struct Error
{
Expand Down
2 changes: 1 addition & 1 deletion hmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "qemu-common.h"
#include "qapi-types.h"
#include "qdict.h"
#include "qapi/qmp/qdict.h"

void hmp_info_name(Monitor *mon);
void hmp_info_version(Monitor *mon);
Expand Down
2 changes: 1 addition & 1 deletion hw/ivshmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "pci/msix.h"
#include "kvm.h"
#include "migration.h"
#include "qerror.h"
#include "qapi/qmp/qerror.h"
#include "event_notifier.h"
#include "qemu-char.h"

Expand Down
2 changes: 1 addition & 1 deletion hw/mc146818rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "qemu-timer.h"
#include "sysemu.h"
#include "mc146818rtc.h"
#include "qapi/qapi-visit-core.h"
#include "qapi/visitor.h"

#ifdef TARGET_I386
#include "apic.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/pci/pci-hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "hw/virtio-blk.h"
#include "qemu-config.h"
#include "blockdev.h"
#include "error.h"
#include "qapi/error.h"

#if defined(TARGET_I386)
static PCIDevice *qemu_pci_hot_add_nic(Monitor *mon,
Expand Down
2 changes: 1 addition & 1 deletion hw/pci/pcie_aer.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

#include "sysemu.h"
#include "qemu-objects.h"
#include "qapi/qmp/types.h"
#include "monitor.h"
#include "hw/pci/pci_bridge.h"
#include "hw/pci/pcie.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/qdev-addr.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "qdev.h"
#include "qdev-addr.h"
#include "hwaddr.h"
#include "qapi/qapi-visit-core.h"
#include "qapi/visitor.h"

/* --- target physical address --- */

Expand Down
2 changes: 1 addition & 1 deletion hw/qdev-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "qemu-types.h"
#include "qemu/object.h"
#include "hw/irq.h"
#include "error.h"
#include "qapi/error.h"

enum DevState {
DEV_STATE_CREATED = 1,
Expand Down
4 changes: 2 additions & 2 deletions hw/qdev-properties.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "net/net.h"
#include "qdev.h"
#include "qerror.h"
#include "qapi/qmp/qerror.h"
#include "blockdev.h"
#include "hw/block-common.h"
#include "net/hub.h"
#include "qapi/qapi-visit-core.h"
#include "qapi/visitor.h"
#include "qemu-char.h"

void *qdev_get_prop_ptr(DeviceState *dev, Property *prop)
Expand Down
4 changes: 2 additions & 2 deletions hw/qdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#include "net/net.h"
#include "qdev.h"
#include "sysemu.h"
#include "error.h"
#include "qapi/qapi-visit-core.h"
#include "qapi/error.h"
#include "qapi/visitor.h"

int qdev_hotplug = 0;
static bool qdev_hot_added = false;
Expand Down
2 changes: 1 addition & 1 deletion hw/vga_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#define HW_VGA_INT_H 1

#include <hw/hw.h>
#include "error.h"
#include "qapi/error.h"
#include "memory.h"

#define ST01_V_RETRACE 0x08
Expand Down
2 changes: 1 addition & 1 deletion hw/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "qemu-option.h"
#include "qemu-config.h"
#include "qemu-queue.h"
#include "qemu-objects.h"
#include "qapi/qmp/types.h"
#include "monitor.h"
#include "sysemu.h"
#include "hw/watchdog.h"
Expand Down
2 changes: 1 addition & 1 deletion include/net/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "qemu-queue.h"
#include "qemu-common.h"
#include "qdict.h"
#include "qapi/qmp/qdict.h"
#include "qemu-option.h"
#include "net/queue.h"
#include "vmstate.h"
Expand Down
2 changes: 1 addition & 1 deletion include/net/slirp.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#define QEMU_NET_SLIRP_H

#include "qemu-common.h"
#include "qdict.h"
#include "qapi/qmp/qdict.h"
#include "qemu-option.h"
#include "qapi-types.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef QAPI_DEALLOC_VISITOR_H
#define QAPI_DEALLOC_VISITOR_H

#include "qapi-visit-core.h"
#include "qapi/visitor.h"

typedef struct QapiDeallocVisitor QapiDeallocVisitor;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion qapi/opts-visitor.h → include/qapi/opts-visitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#ifndef OPTS_VISITOR_H
#define OPTS_VISITOR_H

#include "qapi-visit-core.h"
#include "qapi/visitor.h"
#include "qemu-option.h"

typedef struct OptsVisitor OptsVisitor;
Expand Down
4 changes: 2 additions & 2 deletions qapi/qmp-input-visitor.h → include/qapi/qmp-input-visitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#ifndef QMP_INPUT_VISITOR_H
#define QMP_INPUT_VISITOR_H

#include "qapi-visit-core.h"
#include "qobject.h"
#include "qapi/visitor.h"
#include "qapi/qmp/qobject.h"

typedef struct QmpInputVisitor QmpInputVisitor;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#ifndef QMP_OUTPUT_VISITOR_H
#define QMP_OUTPUT_VISITOR_H

#include "qapi-visit-core.h"
#include "qobject.h"
#include "qapi/visitor.h"
#include "qapi/qmp/qobject.h"

typedef struct QmpOutputVisitor QmpOutputVisitor;

Expand Down
6 changes: 3 additions & 3 deletions qapi/qmp-core.h → include/qapi/qmp/dispatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#ifndef QMP_CORE_H
#define QMP_CORE_H

#include "qobject.h"
#include "qdict.h"
#include "error.h"
#include "qapi/qmp/qobject.h"
#include "qapi/qmp/qdict.h"
#include "qapi/error.h"

typedef void (QmpCommandFunc)(QDict *, QObject **, Error **);

Expand Down
4 changes: 2 additions & 2 deletions json-lexer.h → include/qapi/qmp/json-lexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#ifndef QEMU_JSON_LEXER_H
#define QEMU_JSON_LEXER_H

#include "qstring.h"
#include "qlist.h"
#include "qapi/qmp/qstring.h"
#include "qapi/qmp/qlist.h"

typedef enum json_token_type {
JSON_OPERATOR = 100,
Expand Down
4 changes: 2 additions & 2 deletions json-parser.h → include/qapi/qmp/json-parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#define QEMU_JSON_PARSER_H

#include "qemu-common.h"
#include "qlist.h"
#include "error.h"
#include "qapi/qmp/qlist.h"
#include "qapi/error.h"

QObject *json_parser_parse(QList *tokens, va_list *ap);
QObject *json_parser_parse_err(QList *tokens, va_list *ap, Error **errp);
Expand Down
4 changes: 2 additions & 2 deletions json-streamer.h → include/qapi/qmp/json-streamer.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#ifndef QEMU_JSON_STREAMER_H
#define QEMU_JSON_STREAMER_H

#include "qlist.h"
#include "json-lexer.h"
#include "qapi/qmp/qlist.h"
#include "qapi/qmp/json-lexer.h"

typedef struct JSONMessageParser
{
Expand Down
2 changes: 1 addition & 1 deletion qbool.h → include/qapi/qmp/qbool.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define QBOOL_H

#include <stdint.h>
#include "qobject.h"
#include "qapi/qmp/qobject.h"

typedef struct QBool {
QObject_HEAD;
Expand Down
4 changes: 2 additions & 2 deletions qdict.h → include/qapi/qmp/qdict.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#ifndef QDICT_H
#define QDICT_H

#include "qobject.h"
#include "qlist.h"
#include "qapi/qmp/qobject.h"
#include "qapi/qmp/qlist.h"
#include "qemu-queue.h"
#include <stdint.h>

Expand Down
6 changes: 3 additions & 3 deletions qerror.h → include/qapi/qmp/qerror.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
#ifndef QERROR_H
#define QERROR_H

#include "qdict.h"
#include "qstring.h"
#include "qapi/qmp/qdict.h"
#include "qapi/qmp/qstring.h"
#include "qemu-error.h"
#include "error.h"
#include "qapi/error.h"
#include "qapi-types.h"
#include <stdarg.h>

Expand Down
Loading

0 comments on commit 7b1b5d1

Please sign in to comment.