summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ticket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/ticket.h')
-rw-r--r--src/devices/machine/ticket.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/devices/machine/ticket.h b/src/devices/machine/ticket.h
index 0bf9dd106c3..797fac5bd4e 100644
--- a/src/devices/machine/ticket.h
+++ b/src/devices/machine/ticket.h
@@ -61,9 +61,11 @@ public:
m_hopper_type = hopper_type;
}
+ auto dispense_handler() { return m_dispense_handler.bind(); }
+
// read/write handlers
- DECLARE_READ_LINE_MEMBER( line_r );
- DECLARE_WRITE_LINE_MEMBER( motor_w );
+ int line_r();
+ void motor_w(int state);
protected:
ticket_dispenser_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 0);
@@ -89,6 +91,7 @@ protected:
bool m_power;
emu_timer *m_timer;
output_finder<> m_output;
+ devcb_write_line m_dispense_handler;
};
class hopper_device : public ticket_dispenser_device
@@ -102,6 +105,9 @@ public:
set_senses(motor_sense, status_sense, true);
}
hopper_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
+
+private:
+
};
#endif // MAME_MACHINE_TICKET_H