From 27dfc7c14ea181d538446138801537a713601ee6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 7 May 2002 12:06:32 +0000 Subject: extended the wrapper layer, we can't depend on much in the "real" dirent struct since it differs too much between unixes. d_name is there, the rest we get with stat() calls to simulate the target dirent properly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@492 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/x11/dir.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'uisimulator/x11/dir.h') diff --git a/uisimulator/x11/dir.h b/uisimulator/x11/dir.h index b1df855311..a3898076f6 100644 --- a/uisimulator/x11/dir.h +++ b/uisimulator/x11/dir.h @@ -20,6 +20,7 @@ #define dirent x11_dirent #define readdir(x) x11_readdir(x) #define opendir(x) x11_opendir(x) +#define closedir(x) x11_closedir(x) /* * The defines above should let us use the readdir() and opendir() in target @@ -38,6 +39,17 @@ #include "../../firmware/common/dir.h" -extern DIR *x11_opendir(char *name); -extern struct dirent* x11_readdir(DIR* dir); +#define SIMULATOR_ARCHOS_ROOT "archos" +struct mydir { + DIR *dir; + char *name; +}; + +typedef struct mydir MYDIR; + +extern MYDIR *x11_opendir(char *name); +extern struct dirent* x11_readdir(MYDIR* dir); +extern void x11_closedir(MYDIR *dir); + +#define DIR MYDIR -- cgit v1.2.3