|
|
| version 1.2, 2003/11/16 16:43:45 | version 1.8, 2005/03/05 14:09:37 |
|---|---|
| Line 1 | Line 1 |
| #ifndef NP2_X11_DOSIO_H__ | #ifndef NP2_X11_DOSIO_H__ |
| #define NP2_X11_DOSIO_H__ | #define NP2_X11_DOSIO_H__ |
| enum { | #include <dirent.h> |
| 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ファイル | |
| }; | |
| typedef FILE* FILEH; | typedef FILE * FILEH; |
| #define FILEH_INVALID NULL | #define FILEH_INVALID NULL |
| #define FSEEK_SET SEEK_SET | #define FSEEK_SET SEEK_SET |
| #define FSEEK_CUR SEEK_CUR | #define FSEEK_CUR SEEK_CUR |
| #define FSEEK_END SEEK_END | #define FSEEK_END SEEK_END |
| enum { | enum { |
| FILEATTR_READONLY = 0x01, | FILEATTR_READONLY = 0x01, |
| Line 34 enum { | Line 19 enum { |
| FILEATTR_ARCHIVE = 0x20 | FILEATTR_ARCHIVE = 0x20 |
| }; | }; |
| enum { | |
| FLICAPS_SIZE = (1 << 0), | |
| FLICAPS_ATTR = (1 << 1), | |
| FLICAPS_DATE = (1 << 2), | |
| FLICAPS_TIME = (1 << 3) | |
| }; | |
| typedef struct { | typedef struct { |
| UINT16 year; /* cx */ | UINT16 year; /* cx */ |
| BYTE month; /* dh */ | BYTE month; /* dh */ |
| Line 46 typedef struct { | Line 38 typedef struct { |
| BYTE second; /* dh */ | BYTE second; /* dh */ |
| } DOSTIME; | } DOSTIME; |
| typedef struct { | |
| char path[MAX_PATH]; | |
| DIR *hdl; | |
| } _FLISTH, *FLISTH; | |
| #define FLISTH_INVALID NULL | |
| typedef struct { | |
| UINT caps; | |
| UINT32 size; | |
| UINT32 attr; | |
| DOSDATE date; | |
| DOSTIME time; | |
| char path[MAX_PATH]; | |
| } FLINFO; | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| extern "C" { | extern "C" { |
| Line 78 FILEH file_create_c(const char *sjis); | Line 85 FILEH file_create_c(const char *sjis); |
| short file_delete_c(const char *sjis); | short file_delete_c(const char *sjis); |
| short file_attr_c(const char *sjis); | short file_attr_c(const char *sjis); |
| #define file_cpyname(a, b, c) milstr_ncpy(a, b, c) | FLISTH file_list1st(const char *dir, FLINFO *fli); |
| #define file_cmpname(a, b) milstr_cmp(a, b) | BOOL file_listnext(FLISTH hdl, FLINFO *fli); |
| 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); | void file_catname(char *path, const char *sjis, int maxlen); |
| char *file_getname(char *path); | BOOL file_cmpname(const char *path, const char *sjis); |
| char *file_getname(const char *path); | |
| void file_cutname(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_cutext(char *path); |
| void file_cutseparator(char *path); | void file_cutseparator(char *path); |
| void file_setseparator(char *path, int maxlen); | void file_setseparator(char *path, int maxlen); |