Previous 15994 Revisions Next

r3047 Saturday 16th August, 2008 at 15:12:29 UTC by Nathan Woods
Removed vestigial code and declarations
[src/mess]device.c device.h

src/mess/device.c
r3046r3047
108108
109109
110110/***************************************************************************
111    FUNCTION PROTOTYPES
112***************************************************************************/
113
114static const struct IODevice *mess_device_from_core_device(const device_config *device);
115
116
117
118/***************************************************************************
111119    CORE IMPLEMENTATION
112120***************************************************************************/
113121
r3046r3047
495503 *
496504 *************************************/
497505
498const struct IODevice *mess_device_from_core_device(const device_config *device)
506static const struct IODevice *mess_device_from_core_device(const device_config *device)
499507{
500508   const mess_device_config *mess_device = (device != NULL) ? (const mess_device_config *) device->inline_config : NULL;
501509   return (mess_device != NULL) ? &mess_device->io_device : NULL;
r3046r3047
614622
615623
616624
617const device_config *image_from_device(const struct IODevice *device)
618{
619   return device->devconfig;
620}
621
622
623
624625const device_config *image_from_devtag_and_index(running_machine *machine, const char *devtag, int id)
625626{
626627   const device_config *image = NULL;
src/mess/device.h
r3046r3047
8383};
8484
8585
86struct IODevice;
87
8886typedef void (*device_getdispositions_func)(int id, unsigned int *readable, unsigned int *writeable, unsigned int *creatable);
89typedef const char *(*device_getname_func)(const struct IODevice *dev, int id, char *buf, size_t bufsize);
9087
9188struct _mess_device_class;
9289struct _machine_config;
r3046r3047
110107   device_getdispositions_func getdispositions;
111108
112109   device_display_func display;
113   device_getname_func name;
114110
115111   int (*validity_check)(const struct _mess_device_class *devclass);
116112};
r3046r3047
191187/* interoperability with MAME devices */
192188DEVICE_GET_INFO(mess_device);
193189struct _machine_config *machine_config_alloc_with_mess_devices(const game_driver *gamedrv);
194const struct IODevice *mess_device_from_core_device(const device_config *device);
195190const mess_device_class *mess_devclass_from_core_device(const device_config *device);
196191
197192/* device naming */
r3046r3047
216211
217212/* deprecated device access functions */
218213int image_index_in_device(const device_config *device);
219const device_config *image_from_device(const struct IODevice *iodev);
220214const device_config *image_from_devtag_and_index(running_machine *machine, const char *devtag, int id);
221215
222216/* deprecated device access functions that assume one device of any given type */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team