ROM_END static void svi318_printer_getinfo(struct IODevice *dev) { /* printer */ printer_device_getinfo(dev); dev->count = 1; }
static void atom_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { /* printer */ switch(state) { /* --- the following bits of info are returned as 64-bit signed integers --- */ case DEVINFO_INT_COUNT: info->i = 1; break; default: printer_device_getinfo(devclass, state, info); break; } }
ROM_END #define rom_vz300 rom_laser310 /****************************************************************************** System Config ******************************************************************************/ static void vtech1_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { /* printer */ switch(state) { /* --- the following bits of info are returned as 64-bit signed integers --- */ case DEVINFO_INT_COUNT: info->i = 1; break; default: printer_device_getinfo(devclass, state, info); break; } }