Patchwork [PATCHv6,06/11] virtio: move typedef to qemu-common

login
register
mail settings
Submitter Michael S. Tsirkin
Date March 17, 2010, 11:08 a.m.
Message ID <f400b5821be8cd3a68b6abd42c529ac4306899c4.1268823114.git.mst@redhat.com>
Download mbox | patch
Permalink /patch/47940/
State New
Headers show

Comments

Michael S. Tsirkin - March 17, 2010, 11:08 a.m.
make it possible to use type without header include,
simplifying header dependencies.

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 d3eb714..f885f1b 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 f12a8f5..90ca3b8 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -228,6 +228,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;