summaryrefslogtreecommitdiff
path: root/uisimulator/win32/dir-win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/win32/dir-win32.h')
-rw-r--r--uisimulator/win32/dir-win32.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/uisimulator/win32/dir-win32.h b/uisimulator/win32/dir-win32.h
new file mode 100644
index 0000000000..888a83767a
--- /dev/null
+++ b/uisimulator/win32/dir-win32.h
@@ -0,0 +1,47 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 by Björn Stenberg
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19#ifndef _DIR_WIN32_H_
20#define _DIR_WIN32_H_
21
22#include <stdbool.h>
23#include "file.h"
24
25struct dirent {
26 unsigned char d_name[MAX_PATH];
27 int attribute;
28 int size;
29 int startcluster;
30};
31
32typedef struct
33{
34 struct dirent fd;
35 int handle;
36} DIR;
37
38extern DIR* opendir(const char* name);
39extern int closedir(DIR* dir);
40extern int mkdir(const char* name);
41extern int rmdir(const char* name);
42
43extern struct dirent* readdir(DIR* dir);
44
45#define S_ISDIR(x) (((x) & _S_IFDIR) == _S_IFDIR)
46
47#endif