diff options
author | 2018-04-28 00:01:30 +1000 | |
---|---|---|
committer | 2018-04-28 00:01:30 +1000 | |
commit | 57fd28d36a082eb0fc6ab48e4ded752eb3179976 (patch) | |
tree | 8440d006dceee816e613f8a6e366821bbea27e43 /src/devices/bus/scsi | |
parent | cc27fb97e0aa24e734f553ce99ad6484fced8d6f (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.h | 2 |
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; |