search for: fat_disk_read_handl

Displaying 1 result from an estimated 1 matches for "fat_disk_read_handl".

Did you mean: fat_disk_read_handle
2007 Apr 05
0
Patch: Add io.c functions, and vfat library
...ould be in com32/lib, but its quite helpful for me since I can hook my own read_handler for any partition on any disk, and use libfat to read files off it. Here is an example: typedef struct filedesc { diskinfo* disk_info; part_entry* partition; } filedesc; static filedesc rFd; static int fat_disk_read_handle(intptr_t fdp, void* buf, size_t nbyte, libfat_sector_t sector) { filedesc* fd = (filedesc*) fdp; int num_sectors = nbyte / LIBFAT_SECTOR_SIZE; int status; sector += fd->partition->start_lba; status = syslinux_read_disk(fd->disk_info, buf, sector, num_sectors); return (...