📄 hostemu.h
字号:
/*
hostemu.h
DOSFS Embedded FAT-Compatible Filesystem
Host-Side Emulation Code
(C) 2005 Lewin A.R.W. Edwards (sysadm@zws.com)
*/
#ifndef _HOSTEMU_H
#define _HOSTEMU_H
#include <sys/types.h>
// Override media sector functions
#define DFS_ReadSector(unit,buffer,sector,count) DFS_HostReadSector(buffer,sector,count)
#define DFS_WriteSector(unit,buffer,sector,count) DFS_HostWriteSector(buffer,sector,count)
/*
Attach emulation to a host-side disk image file
Returns 0 OK, nonzero for any error
*/
int DFS_HostAttach(char *imagefile);
/*
Read sector from image
Returns 0 OK, nonzero for any error
*/
int DFS_HostReadSector(uint8_t *buffer, uint32_t sector, uint32_t count);
/*
Write sector to image
Returns 0 OK, nonzero for any error
*/
int DFS_HostWriteSector(uint8_t *buffer, uint32_t sector, uint32_t count);
#endif // _HOSTEMU_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -