qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCHv4 07/12] virtio: move typedef to qemu-common


From: Amit Shah
Subject: Re: [Qemu-devel] [PATCHv4 07/12] virtio: move typedef to qemu-common
Date: Thu, 4 Mar 2010 17:50:19 +0530
User-agent: Mutt/1.5.19 (2009-01-05)

On (Wed) Mar 03 2010 [19:16:28], Michael S. Tsirkin wrote:
> make it possible to use type without header include

Why?

> Signed-off-by: Michael S. Tsirkin <address@hidden>
> ---
>  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 58b06bf..6f2fab0 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;

                Amit




reply via email to

[Prev in Thread] Current Thread [Next in Thread]