diff options
author | Hardeep Sidhu <dyp@pobox.com> | 2004-06-14 07:00:50 +0000 |
---|---|---|
committer | Hardeep Sidhu <dyp@pobox.com> | 2004-06-14 07:00:50 +0000 |
commit | fb26bfb662e7939b6646d290ad658fe1bdbffc8e (patch) | |
tree | 6db2aa5049259834333885891f7af6903625cbe2 /uisimulator/win32/dir-win32.h | |
parent | 2dafebfe1698ee32cce48b9cf4cb3b59a17b295d (diff) | |
download | rockbox-fb26bfb662e7939b6646d290ad658fe1bdbffc8e.tar.gz rockbox-fb26bfb662e7939b6646d290ad658fe1bdbffc8e.zip |
Fixed VC++ build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4739 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/win32/dir-win32.h')
-rw-r--r-- | uisimulator/win32/dir-win32.h | 47 |
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 | |||
25 | struct dirent { | ||
26 | unsigned char d_name[MAX_PATH]; | ||
27 | int attribute; | ||
28 | int size; | ||
29 | int startcluster; | ||
30 | }; | ||
31 | |||
32 | typedef struct | ||
33 | { | ||
34 | struct dirent fd; | ||
35 | int handle; | ||
36 | } DIR; | ||
37 | |||
38 | extern DIR* opendir(const char* name); | ||
39 | extern int closedir(DIR* dir); | ||
40 | extern int mkdir(const char* name); | ||
41 | extern int rmdir(const char* name); | ||
42 | |||
43 | extern struct dirent* readdir(DIR* dir); | ||
44 | |||
45 | #define S_ISDIR(x) (((x) & _S_IFDIR) == _S_IFDIR) | ||
46 | |||
47 | #endif | ||