src/emu/machine/ctronics.c
| r11943 | r11944 | |
| 71 | 71 | /***************************************************************************** |
| 72 | 72 | PRINTER INTERFACE |
| 73 | 73 | *****************************************************************************/ |
| 74 | const struct printer_interface centronics_printer_config = |
| 75 | { |
| 76 | DEVCB_LINE(centronics_printer_online) |
| 77 | }; |
| 74 | 78 | |
| 75 | 79 | static MACHINE_CONFIG_FRAGMENT( centronics ) |
| 76 | 80 | MCFG_PRINTER_ADD("printer") |
| 77 | | MCFG_PRINTER_ONLINE(centronics_printer_online) |
| 81 | MCFG_DEVICE_CONFIG(centronics_printer_config) |
| 78 | 82 | MACHINE_CONFIG_END |
| 79 | 83 | |
| 80 | 84 | |
| r11943 | r11944 | |
| 151 | 155 | sets us busy when the printer goes offline |
| 152 | 156 | -------------------------------------------------*/ |
| 153 | 157 | |
| 154 | | void centronics_printer_online(device_t *device, int state) |
| 158 | WRITE_LINE_DEVICE_HANDLER(centronics_printer_online) |
| 155 | 159 | { |
| 156 | 160 | centronics_state *centronics = get_safe_token(device->owner()); |
| 157 | 161 | |