From patchwork Mon Jan 11 17:20:49 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: 42640 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 8C9E1B6F08 for ; Tue, 12 Jan 2010 04:37:09 +1100 (EST) Received: from localhost ([127.0.0.1]:60268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUOBz-0001Yu-Fd for incoming@patchwork.ozlabs.org; Mon, 11 Jan 2010 12:36:39 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUNzc-0004W6-6F for qemu-devel@nongnu.org; Mon, 11 Jan 2010 12:23:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUNzX-0004TX-7F for qemu-devel@nongnu.org; Mon, 11 Jan 2010 12:23:51 -0500 Received: from [199.232.76.173] (port=34456 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUNzX-0004TR-2N for qemu-devel@nongnu.org; Mon, 11 Jan 2010 12:23:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:25047) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUNzW-0000Wy-Ca for qemu-devel@nongnu.org; Mon, 11 Jan 2010 12:23:46 -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 o0BHNjcn026182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 11 Jan 2010 12:23:45 -0500 Received: from redhat.com (vpn2-11-60.ams2.redhat.com [10.36.11.60]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with SMTP id o0BHNhuu015264; Mon, 11 Jan 2010 12:23:43 -0500 Date: Mon, 11 Jan 2010 19:20:49 +0200 From: "Michael S. Tsirkin" To: Anthony Liguori , qemu-devel@nongnu.org Message-ID: <20100111172049.GH11936@redhat.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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: Subject: [Qemu-devel] [PATCH-RFC 07/13] 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 193b3f9..6a7e3ec 100644 --- a/hw/virtio.h +++ b/hw/virtio.h @@ -67,7 +67,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 8630f8c..8bb1f83 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -217,6 +217,7 @@ typedef struct uWireSlave uWireSlave; typedef struct I2SCodec I2SCodec; typedef struct DeviceState DeviceState; typedef struct SSIBus SSIBus; +typedef struct VirtIODevice VirtIODevice; /* CPU save/load. */ void cpu_save(QEMUFile *f, void *opaque);