Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmtar / filesystem.h
blobcd61ed226ca23f001d5a6dc6f2fbcd567cc27c08
1 #ifndef _FILESYSTEM_H_
2 #define _FILESYSTEM_H_
4 #include <io.h>
5 #include <libtarint/internal.h>
7 struct _KWDIR
9 #if _MSC_VER < 1300
10 long SrchHandle;
11 #else
12 intptr_t SrchHandle;
13 #endif
14 struct _finddata_t Entry; // data of current file
15 int EOD; //end of directory
18 typedef struct _KWDIRENTRY
20 char d_name[TAR_MAXPATHLEN];
21 }kwDirEntry;
23 typedef struct _KWDIR kwDirectory;
24 kwDirectory * kwOpenDir(const char* name);
25 kwDirEntry * kwReadDir(kwDirectory * dir);
26 int kwCloseDir(kwDirectory * dir);
27 #else
29 #endif //MSC