From: Michael S. Tsirkin Date: Wed, 17 Mar 2010 11:08:10 +0000 (+0200) Subject: virtio: move typedef to qemu-common X-Git-Tag: v0.13.0-rc0~902 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=2be24aaafe1a5da1cd78b4ef8442af29dd0083a7;p=qemu.git virtio: move typedef to qemu-common make it possible to use type without header include, simplifying header dependencies. Signed-off-by: Michael S. Tsirkin Signed-off-by: Anthony Liguori --- diff --git a/hw/virtio.h b/hw/virtio.h index d3eb714cc..f885f1b59 100644 --- a/hw/virtio.h +++ b/hw/virtio.h @@ -69,7 +69,6 @@ static inline target_phys_addr_t vring_align(target_phys_addr_t addr, } typedef struct VirtQueue VirtQueue; -typedef struct VirtIODevice VirtIODevice; #define VIRTQUEUE_MAX_SIZE 1024 diff --git a/qemu-common.h b/qemu-common.h index e4f9eb48d..4ba0cdad0 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -229,6 +229,7 @@ typedef struct I2SCodec I2SCodec; typedef struct DeviceState DeviceState; typedef struct SSIBus SSIBus; typedef struct EventNotifier EventNotifier; +typedef struct VirtIODevice VirtIODevice; typedef uint64_t pcibus_t;