diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-10-12 12:54:31 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-10-28 19:25:52 +0200 |
commit | 765d1525a6c727674c5f6f459da4fdaeeda91162 (patch) | |
tree | aea4c60cac77f1f2a38799ed7f3b4f32b948a8e3 | |
parent | adcf2754b99dcab33c5c0c523eb3b970c1a24f6c (diff) |
scsi: export scsi_generic_reqops
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r-- | hw/scsi-generic.c | 2 | ||||
-rw-r--r-- | hw/scsi.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index a5e77cb109..32f50cda3e 100644 --- a/hw/scsi-generic.c +++ b/hw/scsi-generic.c @@ -420,7 +420,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, @@ -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 |