diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-10 13:29:52 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-10 13:29:52 +0000 |
commit | a6142ab7ab58f69a3f1a034db4bdf1eff24d3dd6 (patch) | |
tree | ef00c3ec8074ccb080b221c7d1dd4b3d03c8fd87 /uisimulator/common/dir.h | |
parent | 5fc1b64ae051e454d2b3bf3a20be5d88937e55e7 (diff) | |
download | rockbox-a6142ab7ab58f69a3f1a034db4bdf1eff24d3dd6.tar.gz rockbox-a6142ab7ab58f69a3f1a034db4bdf1eff24d3dd6.zip |
Finally, the archos directory sandbox works in the same way for both X11 and win32 simulators. Unfortunately, this breaks the VC++ compatibility. Also, the plugin API now supports DEBUGF. Last, but not least, we have a new plugin, vbrfix.rock.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4726 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common/dir.h')
-rw-r--r-- | uisimulator/common/dir.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/uisimulator/common/dir.h b/uisimulator/common/dir.h new file mode 100644 index 0000000000..15332be54e --- /dev/null +++ b/uisimulator/common/dir.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 by Daniel Stenberg <daniel@haxx.se> | ||
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 _SIM_DIR_H_ | ||
20 | #define _SIM_DIR_H_ | ||
21 | |||
22 | #include <sys/types.h> | ||
23 | |||
24 | #define DIRFUNCTIONS_DEFINED /* prevent those prototypes */ | ||
25 | #define dirent sim_dirent | ||
26 | #include "../../firmware/include/dir.h" | ||
27 | #undef dirent | ||
28 | |||
29 | typedef void * MYDIR; | ||
30 | |||
31 | extern MYDIR *sim_opendir(const char *name); | ||
32 | extern struct sim_dirent* sim_readdir(MYDIR* dir); | ||
33 | extern int sim_closedir(MYDIR *dir); | ||
34 | extern int sim_mkdir(char *name, int mode); | ||
35 | extern int sim_rmdir(char *name); | ||
36 | |||
37 | #define DIR MYDIR | ||
38 | #define dirent sim_dirent | ||
39 | #define opendir(x) sim_opendir(x) | ||
40 | #define readdir(x) sim_readdir(x) | ||
41 | #define closedir(x) sim_closedir(x) | ||
42 | #define mkdir(x, y) sim_mkdir(x, y) | ||
43 | #define rmdir(x) sim_rmdir(x) | ||
44 | |||
45 | #endif | ||