]> git.proxmox.com Git - qemu.git/commitdiff
virtio: move typedef to qemu-common
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 17 Mar 2010 11:08:10 +0000 (13:08 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 1 Apr 2010 18:56:43 +0000 (13:56 -0500)
make it possible to use type without header include,
simplifying header dependencies.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio.h
qemu-common.h

index d3eb714ccaff6af6bb28ac137c415826e5549719..f885f1b599d7dcad89edc72160ce177f4df41dea 100644 (file)
@@ -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
 
index e4f9eb48d515846ea27a3d240e5e7f3a97d8a450..4ba0cdad064b71c5246427decbcf61d9ea3013f2 100644 (file)
@@ -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;