summaryrefslogtreecommitdiff
path: root/src/win32/dir/dir.h
blob: 52956876ce7b36d7d90b9b3a58ba60cbb9403a17 (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
/* POSIX emulation layer for Windows.
 *
 * (C) 2008-2017 Anope Team
 * Contact us at team@anope.org
 *
 * Please read COPYING and README for further details.
 */

#include <windows.h>

struct dirent
{
	int d_ino;
	char *d_name;
};

struct DIR
{
	dirent ent;
	HANDLE handle;
	WIN32_FIND_DATA data;
	bool read_first;
};
 
DIR *opendir(const char *);
dirent *readdir(DIR *);
int closedir(DIR *);