summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/scsi
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-04-28 00:01:30 +1000
committer Vas Crabb <vas@vastheman.com>2018-04-28 00:01:30 +1000
commit57fd28d36a082eb0fc6ab48e4ded752eb3179976 (patch)
tree8440d006dceee816e613f8a6e366821bbea27e43 /src/devices/bus/scsi
parentcc27fb97e0aa24e734f553ce99ad6484fced8d6f (diff)
Sarayan made me do it.
Concrete device types now have a call operator that instantiates a device. This change means you *must* use DECLARE_DEVICE_TYPE to declare the public interface of your device, even if it's device_t. If you want to use private implementation classes, use DEFINE_DEVICE_TYPE_PRIVATE and instantiate the object finders.
Diffstat (limited to 'src/devices/bus/scsi')
-rw-r--r--src/devices/bus/scsi/scsi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/bus/scsi/scsi.h b/src/devices/bus/scsi/scsi.h
index 3685a86cddc..a70ce111c8d 100644
--- a/src/devices/bus/scsi/scsi.h
+++ b/src/devices/bus/scsi/scsi.h
@@ -217,7 +217,7 @@ private:
int m_data7_out;
};
-extern const device_type SCSI_PORT;
+DECLARE_DEVICE_TYPE(SCSI_PORT, scsi_port_device)
class scsi_port_interface;