blob: cd61ed226ca23f001d5a6dc6f2fbcd567cc27c08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef _FILESYSTEM_H_
#define _FILESYSTEM_H_
#include <io.h>
#include <libtarint/internal.h>
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
{
char d_name[TAR_MAXPATHLEN];
}kwDirEntry;
typedef struct _KWDIR kwDirectory;
kwDirectory * kwOpenDir(const char* name);
kwDirEntry * kwReadDir(kwDirectory * dir);
int kwCloseDir(kwDirectory * dir);
#else
#endif //MSC
|