Previous 15994 Revisions Next

r2304 Sunday 6th April, 2008 at 14:33:17 UTC by Nathan Woods
Device refactoring
[src/mess]device.h image.h

src/mess/image.h
r2303r2304
2222    TYPE DEFINITIONS
2323***************************************************************************/
2424
25typedef int (*device_image_load_func)(const device_config *image);
26typedef int (*device_image_create_func)(const device_config *image, int format_type, option_resolution *format_options);
27typedef void (*device_image_unload_func)(const device_config *image);
28typedef void (*device_display_func)(const device_config *image);
29typedef void (*device_image_partialhash_func)(char *, const unsigned char *, unsigned long, unsigned int);
30
2531typedef enum
2632{
2733   /* List of all supported devices.  Refer to the device by these names only */
r2303r2304
8995
9096   /* --- the following bits of info are returned as pointers to functions --- */
9197   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 */
95101   DEVINFO_FCT_DISPLAY,                              /* R/O: device_display_func */
96102   DEVINFO_FCT_IMAGE_PARTIAL_HASH,                        /* R/O: device_image_partialhash_func */
97103   DEVINFO_FCT_IMAGE_LAST = DEVINFO_FCT_FIRST + 0x0fff,
src/mess/device.h
r2303r2304
9292
9393struct IODevice;
9494
95typedef int (*device_image_load_func)(const device_config *image);
96typedef int (*device_image_create_func)(const device_config *image, int format_type, option_resolution *format_options);
97typedef void (*device_image_unload_func)(const device_config *image);
9895typedef int (*device_image_verify_func)(const UINT8 *buf, size_t size);
99typedef void (*device_image_partialhash_func)(char *, const unsigned char *, unsigned long, unsigned int);
10096typedef void (*device_getdispositions_func)(int id, unsigned int *readable, unsigned int *writeable, unsigned int *creatable);
101typedef void (*device_display_func)(const device_config *image);
10297typedef const char *(*device_getname_func)(const struct IODevice *dev, int id, char *buf, size_t bufsize);
10398
10499struct _mess_device_class;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team