Patchwork [09/15] virtio: move typedef to qemu-common

login
register
mail settings
Submitter Michael S. Tsirkin
Date Feb. 4, 2010, 12:46 p.m.
Message ID <20100204124645.GJ22559@redhat.com>
Download mbox | patch
Permalink /patch/44471/
State New
Headers show

Comments

Michael S. Tsirkin - Feb. 4, 2010, 12:46 p.m.
make it possible to use type without header include

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 hw/virtio.h   |    1 -
 qemu-common.h |    1 +
 2 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/virtio.h b/hw/virtio.h
index 235e7c4..5dae591 100644
--- a/hw/virtio.h
+++ b/hw/virtio.h
@@ -68,7 +68,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 423e962..e1c3c4e 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -225,6 +225,7 @@  typedef struct I2SCodec I2SCodec;
 typedef struct DeviceState DeviceState;
 typedef struct SSIBus SSIBus;
 typedef struct EventNotifier EventNotifier;
+typedef struct VirtIODevice VirtIODevice;
 
 /* CPU save/load.  */
 void cpu_save(QEMUFile *f, void *opaque);