File:  [RetroPC.NET] / np2 / macosx / macossub.h
Revision 1.2: download - view: text, annotated - select for diffs
Mon Nov 3 19:19:43 2003 JST (21 years, 11 months ago) by tk800
Branches: MAIN
CVS tags: VER_0_72, VER_0_71, VER_0_70, HEAD
ToolWindow for Mac


enum {
	FILEATTR_READONLY	= 0x01,
	FILEATTR_HIDDEN		= 0x02,
	FILEATTR_SYSTEM		= 0x04,
	FILEATTR_VOLUME		= 0x08,
	FILEATTR_DIRECTORY	= 0x10,
	FILEATTR_ARCHIVE	= 0x20
};

typedef struct {
	char	path[MAX_PATH];
	UINT32	size;
	UINT32	attr;
} FLDATA;

#ifdef __cplusplus
extern "C" {
#endif

void macossub_init(void);
void macossub_term(void);

UINT32 macos_gettick(void);

void mkstr255(Str255 dst, const char *src);
void mkcstr(char *dst, int size, const Str255 src);

void *file_list1st(const char *dir, FLDATA *fl);
BOOL file_listnext(void *hdl, FLDATA *fl);
void file_listclose(void *hdl);

bool getLongFileName(char* dst, const char* path);

#ifdef __cplusplus
}
#endif


RetroPC.NET-CVS <cvs@retropc.net>