aboutsummaryrefslogtreecommitdiff
path: root/hw/scsi-disk.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-09-16 22:25:28 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:46 -0500
commitca9c39faed928405574d234b4f7c5704cd2c568e (patch)
treebd18085c51f1741e18950480fdbccae0c4f85d8f /hw/scsi-disk.h
parentcd739fb6e93c32154c898c822c967877894b1ab3 (diff)
downloadqemu-ca9c39faed928405574d234b4f7c5704cd2c568e.zip
qemu-ca9c39faed928405574d234b4f7c5704cd2c568e.tar.gz
qemu-ca9c39faed928405574d234b4f7c5704cd2c568e.tar.bz2
switch scsi bus to inplace allocation.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/scsi-disk.h')
-rw-r--r--hw/scsi-disk.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/scsi-disk.h b/hw/scsi-disk.h
index febde44..b6b6c12 100644
--- a/hw/scsi-disk.h
+++ b/hw/scsi-disk.h
@@ -52,8 +52,8 @@ struct SCSIBus {
SCSIDevice *devs[8];
};
-SCSIBus *scsi_bus_new(DeviceState *host, int tcq, int ndev,
- scsi_completionfn complete);
+void scsi_bus_new(SCSIBus *bus, DeviceState *host, int tcq, int ndev,
+ scsi_completionfn complete);
void scsi_qdev_register(SCSIDeviceInfo *info);
static inline SCSIBus *scsi_bus_from_device(SCSIDevice *d)