summaryrefslogtreecommitdiff
path: root/uisimulator/x11/dir.h
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/x11/dir.h')
-rw-r--r--uisimulator/x11/dir.h16
1 files changed, 14 insertions, 2 deletions
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 @@
20#define dirent x11_dirent 20#define dirent x11_dirent
21#define readdir(x) x11_readdir(x) 21#define readdir(x) x11_readdir(x)
22#define opendir(x) x11_opendir(x) 22#define opendir(x) x11_opendir(x)
23#define closedir(x) x11_closedir(x)
23 24
24/* 25/*
25 * The defines above should let us use the readdir() and opendir() in target 26 * The defines above should let us use the readdir() and opendir() in target
@@ -38,6 +39,17 @@
38 39
39#include "../../firmware/common/dir.h" 40#include "../../firmware/common/dir.h"
40 41
41extern DIR *x11_opendir(char *name); 42#define SIMULATOR_ARCHOS_ROOT "archos"
42extern struct dirent* x11_readdir(DIR* dir);
43 43
44struct mydir {
45 DIR *dir;
46 char *name;
47};
48
49typedef struct mydir MYDIR;
50
51extern MYDIR *x11_opendir(char *name);
52extern struct dirent* x11_readdir(MYDIR* dir);
53extern void x11_closedir(MYDIR *dir);
54
55#define DIR MYDIR