aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2010-03-17 13:08:10 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-04-01 13:56:43 -0500
commit2be24aaafe1a5da1cd78b4ef8442af29dd0083a7 (patch)
tree5aa6ae113f581e0981d9b4c1aac536b43b593e4c
parent3e607cb503acbd8606e5d42e6b80adcf1ccf9a92 (diff)
virtio: move typedef to qemu-common
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>
-rw-r--r--hw/virtio.h1
-rw-r--r--qemu-common.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio.h b/hw/virtio.h
index d3eb714cca..f885f1b599 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 e4f9eb48d5..4ba0cdad06 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;