From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:55578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REJ67-0007IF-1y for qemu-devel@nongnu.org; Thu, 13 Oct 2011 07:05:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REJ61-0004Kw-6e for qemu-devel@nongnu.org; Thu, 13 Oct 2011 07:05:10 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:61406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REJ60-00048s-1j for qemu-devel@nongnu.org; Thu, 13 Oct 2011 07:05:04 -0400 Received: by mail-wy0-f173.google.com with SMTP id 22so1888325wyh.4 for ; Thu, 13 Oct 2011 04:05:03 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 13 Oct 2011 13:04:03 +0200 Message-Id: <1318503845-11473-34-git-send-email-pbonzini@redhat.com> In-Reply-To: <1318503845-11473-1-git-send-email-pbonzini@redhat.com> References: <1318503845-11473-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 33/35] scsi: export scsi_generic_reqops List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Paolo Bonzini --- hw/scsi-generic.c | 2 +- hw/scsi.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index abe92fa..c4f928a 100644 --- a/hw/scsi-generic.c +++ b/hw/scsi-generic.c @@ -407,7 +407,7 @@ static int scsi_generic_initfn(SCSIDevice *s) return 0; } -static const SCSIReqOps scsi_generic_req_ops = { +const SCSIReqOps scsi_generic_req_ops = { .size = sizeof(SCSIGenericReq), .free_req = scsi_free_request, .send_command = scsi_send_command, diff --git a/hw/scsi.h b/hw/scsi.h index af558c3..01c6655 100644 --- a/hw/scsi.h +++ b/hw/scsi.h @@ -197,4 +197,7 @@ void scsi_device_purge_requests(SCSIDevice *sdev, SCSISense sense); int scsi_device_get_sense(SCSIDevice *dev, uint8_t *buf, int len, bool fixed); SCSIDevice *scsi_device_find(SCSIBus *bus, int channel, int target, int lun); +/* scsi-generic.c. */ +extern const SCSIReqOps scsi_generic_req_ops; + #endif -- 1.7.6