--- np2/generic/hostdrv.h 2004/01/09 07:27:15 1.2 +++ np2/generic/hostdrv.h 2004/06/20 03:40:31 1.6 @@ -1,21 +1,7 @@ -#define DIRMAX_DEPTH 8 - -typedef struct { - char fcbname[12]; - UINT32 size; - UINT32 attr; -} HDRVDIR; - -typedef struct { - HDRVDIR di; - char realname[MAX_PATH]; -} _HDRVLST, *HDRVLST; +#if defined(SUPPORT_HOSTDRV) -typedef struct { - HDRVDIR di; - char path[MAX_PATH]; -} HDRVPATH; +#define DIRMAX_DEPTH 8 enum { HDFMODE_READ = 0x01, @@ -26,17 +12,19 @@ enum { typedef struct { long hdl; UINT mode; - char path[MAX_PATH]; + OEMCHAR path[MAX_PATH]; } _HDRVFILE, *HDRVFILE; typedef struct { - UINT8 is_mount; - UINT8 drive_no; - UINT8 dosver_major; - UINT8 dosver_minor; - UINT16 sda_off; - UINT16 sda_seg; - UINT flistpos; + struct { + UINT8 is_mount; + UINT8 drive_no; + UINT8 dosver_major; + UINT8 dosver_minor; + UINT16 sda_off; + UINT16 sda_seg; + UINT flistpos; + } stat; // LISTARRAY cache[DIRMAX_DEPTH]; LISTARRAY fhdl; @@ -56,11 +44,16 @@ void hostdrv_reset(void); // void save_hostdrv(void); // void load_hostdrv(void); -BOOL hostdrv_mount(void); -void hostdrv_unmount(void); -void hostdrv_intr(void); +void hostdrv_mount(const void *arg1, long arg2); +void hostdrv_unmount(const void *arg1, long arg2); +void hostdrv_intr(const void *arg1, long arg2); + +int hostdrv_sfsave(STFLAGH sfh, const SFENTRY *tbl); +int hostdrv_sfload(STFLAGH sfh, const SFENTRY *tbl); #ifdef __cplusplus } #endif +#endif +