src/mess/device.c
| r2065 | r2066 | |
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | |
| 19 | | /************************************* |
| 20 | | * |
| 21 | | * Names and shortnames |
| 22 | | * |
| 23 | | *************************************/ |
| 19 | /*************************************************************************** |
| 20 | TYPE DEFINITIONS |
| 21 | ***************************************************************************/ |
| 24 | 22 | |
| 25 | 23 | struct Devices |
| 26 | 24 | { |
| r2065 | r2066 | |
| 29 | 27 | const char *shortname; |
| 30 | 28 | }; |
| 31 | 29 | |
| 30 | |
| 31 | |
| 32 | typedef struct _device_list device_list; |
| 33 | struct _device_list |
| 34 | { |
| 35 | object_pool *pool; |
| 36 | struct IODevice devices[1]; |
| 37 | }; |
| 38 | |
| 39 | |
| 40 | |
| 41 | /*************************************************************************** |
| 42 | GLOBAL VARIABLES |
| 43 | ***************************************************************************/ |
| 44 | |
| 32 | 45 | /* The List of Devices, with Associated Names - Be careful to ensure that * |
| 33 | 46 | * this list matches the ENUM from device.h, so searches can use IO_COUNT */ |
| 34 | 47 | static const struct Devices device_info_array[] = |
| r2065 | r2066 | |
| 49 | 62 | { IO_CDROM, "cdrom", "cdrm" }, /* 13 */ |
| 50 | 63 | }; |
| 51 | 64 | |
| 52 | | typedef struct _device_list device_list; |
| 53 | | struct _device_list |
| 54 | | { |
| 55 | | object_pool *pool; |
| 56 | | struct IODevice devices[1]; |
| 57 | | }; |
| 58 | 65 | |
| 59 | 66 | |
| 67 | /*************************************************************************** |
| 68 | CORE IMPLEMENTATION |
| 69 | ***************************************************************************/ |
| 60 | 70 | |
| 61 | 71 | const char *device_typename(iodevice_t type) |
| 62 | 72 | { |