// SPDX-License-Identifier: GPL-3.0-or-later #ifndef VCC_DISK_INTERNAL_H #define VCC_DISK_INTERNAL_H #include typedef void (*DskConRoutine)(void); struct VccDiskBackend { DskConRoutine routine; DECBDskConVariables *variables; }; struct VccDiskBuffers { byte *fat, *directory; const byte *previousFAT; }; extern const struct VccDiskBuffers vcc_disk_buffers; byte vcc_disk_parse_path(const char *path, char *raw, byte *drive); byte vcc_disk_path_open(byte drive, const char *normalizedName); byte vcc_disk_use_rom(struct VccDiskBackend *saved); byte vcc_disk_check_volume(byte drive); void vcc_disk_restore(const struct VccDiskBackend *saved); byte vcc_disk_sector(byte drive, byte op, byte sector, byte *buf); int vcc_disk_result(byte error); extern DECBDrive *decb_getDrive(byte driveNo); #endif