src/mess/image.h
| r2303 | r2304 | |
| 22 | 22 | TYPE DEFINITIONS |
| 23 | 23 | ***************************************************************************/ |
| 24 | 24 | |
| 25 | typedef int (*device_image_load_func)(const device_config *image); |
| 26 | typedef int (*device_image_create_func)(const device_config *image, int format_type, option_resolution *format_options); |
| 27 | typedef void (*device_image_unload_func)(const device_config *image); |
| 28 | typedef void (*device_display_func)(const device_config *image); |
| 29 | typedef void (*device_image_partialhash_func)(char *, const unsigned char *, unsigned long, unsigned int); |
| 30 | |
| 25 | 31 | typedef enum |
| 26 | 32 | { |
| 27 | 33 | /* List of all supported devices. Refer to the device by these names only */ |
| r2303 | r2304 | |
| 89 | 95 | |
| 90 | 96 | /* --- the following bits of info are returned as pointers to functions --- */ |
| 91 | 97 | DEVINFO_FCT_IMAGE_FIRST = DEVINFO_FCT_FIRST + 0x7000, |
| 92 | | DEVINFO_FCT_IMAGE_LOAD, /* R/O: device_load_handler */ |
| 93 | | DEVINFO_FCT_IMAGE_CREATE, /* R/O: device_create_handler */ |
| 94 | | DEVINFO_FCT_IMAGE_UNLOAD, /* R/O: device_unload_handler */ |
| 98 | DEVINFO_FCT_IMAGE_LOAD, /* R/O: device_image_load_func */ |
| 99 | DEVINFO_FCT_IMAGE_CREATE, /* R/O: device_image_create_func */ |
| 100 | DEVINFO_FCT_IMAGE_UNLOAD, /* R/O: device_image_unload_func */ |
| 95 | 101 | DEVINFO_FCT_DISPLAY, /* R/O: device_display_func */ |
| 96 | 102 | DEVINFO_FCT_IMAGE_PARTIAL_HASH, /* R/O: device_image_partialhash_func */ |
| 97 | 103 | DEVINFO_FCT_IMAGE_LAST = DEVINFO_FCT_FIRST + 0x0fff, |
src/mess/device.h
| r2303 | r2304 | |
| 92 | 92 | |
| 93 | 93 | struct IODevice; |
| 94 | 94 | |
| 95 | | typedef int (*device_image_load_func)(const device_config *image); |
| 96 | | typedef int (*device_image_create_func)(const device_config *image, int format_type, option_resolution *format_options); |
| 97 | | typedef void (*device_image_unload_func)(const device_config *image); |
| 98 | 95 | typedef int (*device_image_verify_func)(const UINT8 *buf, size_t size); |
| 99 | | typedef void (*device_image_partialhash_func)(char *, const unsigned char *, unsigned long, unsigned int); |
| 100 | 96 | typedef void (*device_getdispositions_func)(int id, unsigned int *readable, unsigned int *writeable, unsigned int *creatable); |
| 101 | | typedef void (*device_display_func)(const device_config *image); |
| 102 | 97 | typedef const char *(*device_getname_func)(const struct IODevice *dev, int id, char *buf, size_t bufsize); |
| 103 | 98 | |
| 104 | 99 | struct _mess_device_class; |