--- np2/x11/dosio.h 2004/01/13 16:30:21 1.5 +++ np2/x11/dosio.h 2005/03/05 14:09:37 1.8 @@ -1,29 +1,11 @@ #ifndef NP2_X11_DOSIO_H__ #define NP2_X11_DOSIO_H__ -enum { - FTYPE_NONE = 0, // 自動判別 or PC - FTYPE_SMIL, // システム予約 - FTYPE_TEXT, // テキストファイル - FTYPE_BMP, // Bitmap - FTYPE_PICT, // Picture (予約) - FTYPE_PNG, // Png (予約) - FTYPE_WAV, // Wave - FTYPE_D88, // D88 - FTYPE_BETA, // ベタイメージ - FTYPE_THD, // .thd ハードディスクイメージ - FTYPE_HDI, // .hdi ハードディスクイメージ - FTYPE_HDD, // .hdd ハードディスクイメージ (予約) - FTYPE_S98, // .s98 ハードディスクイメージ - FTYPE_MIMPI // mimpi defaultファイル -}; +#include typedef FILE * FILEH; #define FILEH_INVALID NULL -typedef void * FLISTH; -#define FLISTH_INVALID NULL - #define FSEEK_SET SEEK_SET #define FSEEK_CUR SEEK_CUR #define FSEEK_END SEEK_END @@ -57,6 +39,12 @@ typedef struct { } DOSTIME; typedef struct { + char path[MAX_PATH]; + DIR *hdl; +} _FLISTH, *FLISTH; +#define FLISTH_INVALID NULL + +typedef struct { UINT caps; UINT32 size; UINT32 attr; @@ -104,9 +92,9 @@ void file_listclose(FLISTH hdl); void file_cpyname(char *dst, const char *src, int maxlen); void file_catname(char *path, const char *sjis, int maxlen); BOOL file_cmpname(const char *path, const char *sjis); -char *file_getname(char *path); +char *file_getname(const char *path); void file_cutname(char *path); -char *file_getext(char *path); +char *file_getext(const char *path); void file_cutext(char *path); void file_cutseparator(char *path); void file_setseparator(char *path, int maxlen);