summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/decocass.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/decocass.h')
-rw-r--r--src/mame/machine/decocass.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/mame/machine/decocass.h b/src/mame/machine/decocass.h
index b7a59867438..d13c981ff35 100644
--- a/src/mame/machine/decocass.h
+++ b/src/mame/machine/decocass.h
@@ -8,7 +8,26 @@
#define LOG(n,x) do { if (LOGLEVEL >= n) logerror x; } while (0)
-DECLARE_LEGACY_DEVICE(DECOCASS_TAPE, decocass_tape);
+class decocass_tape_device : public device_t
+{
+public:
+ decocass_tape_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~decocass_tape_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();
+private:
+ // internal state
+ void *m_token;
+};
+
+extern const device_type DECOCASS_TAPE;
+
#define MCFG_DECOCASS_TAPE_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, DECOCASS_TAPE, 0)