From patchwork Thu Feb 25 18:28:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 46265 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id AB936B7C59 for ; Fri, 26 Feb 2010 05:44:14 +1100 (EST) Received: from localhost ([127.0.0.1]:46325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkigG-00044g-L5 for incoming@patchwork.ozlabs.org; Thu, 25 Feb 2010 13:43:24 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkiUs-0001NJ-1z for qemu-devel@nongnu.org; Thu, 25 Feb 2010 13:31:38 -0500 Received: from [199.232.76.173] (port=56225 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkiUr-0001N1-Hu for qemu-devel@nongnu.org; Thu, 25 Feb 2010 13:31:37 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NkiUq-0006gn-GW for qemu-devel@nongnu.org; Thu, 25 Feb 2010 13:31:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52152) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NkiUq-0006gh-3T for qemu-devel@nongnu.org; Thu, 25 Feb 2010 13:31:36 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1PIVX7V010706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 25 Feb 2010 13:31:34 -0500 Received: from redhat.com (vpn2-11-182.ams2.redhat.com [10.36.11.182]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with SMTP id o1PIVUIl005685; Thu, 25 Feb 2010 13:31:31 -0500 Date: Thu, 25 Feb 2010 20:28:20 +0200 From: "Michael S. Tsirkin" To: Anthony Liguori , qemu-devel@nongnu.org Message-ID: <7755c8653f6785fdd0e16c18d7e91608b1e8c0b6.1267122331.git.mst@redhat.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Mutt-Fcc: =sent User-Agent: Mutt/1.5.19 (2009-01-05) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: amit.shah@redhat.com, kraxel@redhat.com, quintela@redhat.com Subject: [Qemu-devel] [PATCHv2 07/12] virtio: move typedef to qemu-common X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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(-) diff --git a/hw/virtio.h b/hw/virtio.h index e12e8e3..b4cd877 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;