From 76818196ef6b1d0efff048e760fa992b8b38d48f Mon Sep 17 00:00:00 2001 From: Michael S. Tsirkin Date: Wed, 3 Mar 2010 19:58:25 -0300 Subject: [PATCH 08/17] virtio: move typedef to qemu-common RH-Author: Michael S. Tsirkin Message-id: <2b2e6a140a29994093084d88b9e3e1b88610c472.1267644824.git.mst@redhat.com> Patchwork-id: 7482 O-Subject: [PATCHv3 08/17] virtio: move typedef to qemu-common Bugzilla: 562958 RH-Acked-by: Juan Quintela RH-Acked-by: Amit Shah RH-Acked-by: Gerd Hoffmann make it possible to use type without header include Signed-off-by: Michael S. Tsirkin --- hw/virtio.h | 1 - qemu-common.h | 1 + 2 files changed, 1 insertions(+), 1 deletions(-) Signed-off-by: Eduardo Habkost --- hw/virtio.h | 1 - qemu-common.h | 1 + 2 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/virtio.h b/hw/virtio.h index d83f222..15371ca 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 5e935d1..9a31ce0 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); -- 1.6.3.rc4.29.g8146