5 /* The type of device the file system is on: */
6 #define CPMDRV_FILE 0 /* Regular file or Unix block device */
7 #define CPMDRV_WIN95 1 /* Windows 95 floppy drive accessed via VWIN32 */
8 #define CPMDRV_WINNT 2 /* Windows NT floppy drive accessed via CreateFile */
30 const char *Device_open(struct Device *self, const char *filename, int mode, const char *deviceOpts);
31 const char *Device_setGeometry(struct Device *self, int secLength, int sectrk, int tracks, off_t offset, const char *libdskGeometry);
32 const char *Device_close(struct Device *self);
33 const char *Device_readSector(const struct Device *self, int track, int sector, char *buf);
34 const char *Device_writeSector(const struct Device *self, int track, int sector, const char *buf);