2005-12-28 18:18:37 +03:00
|
|
|
#ifndef _FILESYSTEM_H_
|
|
|
|
#define _FILESYSTEM_H_
|
|
|
|
|
|
|
|
#include <io.h>
|
2005-12-28 22:58:07 +03:00
|
|
|
#include <libtarint/internal.h>
|
2005-12-28 18:18:37 +03:00
|
|
|
|
|
|
|
struct _KWDIR
|
|
|
|
{
|
|
|
|
#if _MSC_VER < 1300
|
|
|
|
long SrchHandle;
|
|
|
|
#else
|
|
|
|
intptr_t SrchHandle;
|
|
|
|
#endif
|
|
|
|
struct _finddata_t Entry; // data of current file
|
|
|
|
int EOD; //end of directory
|
|
|
|
|
|
|
|
};
|
|
|
|
typedef struct _KWDIRENTRY
|
|
|
|
{
|
2005-12-28 22:58:07 +03:00
|
|
|
char d_name[TAR_MAXPATHLEN];
|
2005-12-28 18:18:37 +03:00
|
|
|
}kwDirEntry;
|
|
|
|
|
|
|
|
typedef struct _KWDIR kwDirectory;
|
|
|
|
kwDirectory * kwOpenDir(const char* name);
|
|
|
|
kwDirEntry * kwReadDir(kwDirectory * dir);
|
|
|
|
int kwCloseDir(kwDirectory * dir);
|
|
|
|
#else
|
|
|
|
|
|
|
|
#endif //MSC
|
|
|
|
|