diff options
author | 2012-09-03 13:56:17 +0000 | |
---|---|---|
committer | 2012-09-03 13:56:17 +0000 | |
commit | b711b1a007c3a4a75e78eb88f9a6afe4d4180728 (patch) | |
tree | 1498465a0134d7b039fce9271d2b388d218425d4 /src/mess/machine/pc_lpt.h | |
parent | f552908ea962ecdd7e94ea609c84144815b64557 (diff) |
conversion of legacy devices into modern wip (no whatsnew)
Diffstat (limited to 'src/mess/machine/pc_lpt.h')
-rw-r--r-- | src/mess/machine/pc_lpt.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/mess/machine/pc_lpt.h b/src/mess/machine/pc_lpt.h index d04c027d8d1..3c623f78294 100644 --- a/src/mess/machine/pc_lpt.h +++ b/src/mess/machine/pc_lpt.h @@ -39,7 +39,27 @@ WRITE8_DEVICE_HANDLER( pc_lpt_control_w ); DEVICE CONFIGURATION MACROS ***************************************************************************/ -DECLARE_LEGACY_DEVICE(PC_LPT, pc_lpt); +class pc_lpt_device : public device_t +{ +public: + pc_lpt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + ~pc_lpt_device() { global_free(m_token); } + + // access to legacy token + void *token() const { assert(m_token != NULL); return m_token; } +protected: + // device-level overrides + virtual void device_config_complete(); + virtual void device_start(); + virtual void device_reset(); + virtual machine_config_constructor device_mconfig_additions() const; +private: + // internal state + void *m_token; +}; + +extern const device_type PC_LPT; + #define MCFG_PC_LPT_ADD(_tag, _intf) \ MCFG_DEVICE_ADD(_tag, PC_LPT, 0) \ |