summaryrefslogtreecommitdiff
path: root/firmware/include/dircache.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-09-01 21:29:34 +0000
committerThomas Martitz <kugel@rockbox.org>2010-09-01 21:29:34 +0000
commit6eaab4d00446c070c655f0e6c9a872532a776b6f (patch)
tree69610996dd0a6092459b14e164d4e48e03b1e5bb /firmware/include/dircache.h
parent8e0a0babc57db3e9edc06f3e269fb47c27292ed5 (diff)
downloadrockbox-6eaab4d00446c070c655f0e6c9a872532a776b6f.tar.gz
rockbox-6eaab4d00446c070c655f0e6c9a872532a776b6f.zip
Ged rid of uisimulator/common/io.c for android builds.
Use host's functions for file i/o directly (open(), close() ,etc.), not the sim_* variants. Some dir functions need to be wrapped still because we need to cache the parents dir's path (host's dirent doesn't let us know). For the same reason (incompatibility) with host's dirent) detach some members from Rockbox' dirent struct and put it into an extra one, the values can be retrieved via the new dir_get_info(). Get rid of the sim_ prefix for sleep as well and change the signature to unix sleep(). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27968 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/dircache.h')
-rw-r--r--firmware/include/dircache.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/firmware/include/dircache.h b/firmware/include/dircache.h
index 650b92632d..37a803c63c 100644
--- a/firmware/include/dircache.h
+++ b/firmware/include/dircache.h
@@ -63,25 +63,19 @@ struct fdbind_queue {
63 63
64/* Exported structures. */ 64/* Exported structures. */
65struct dircache_entry { 65struct dircache_entry {
66 struct dirinfo info;
66 struct dircache_entry *next; 67 struct dircache_entry *next;
67 struct dircache_entry *up; 68 struct dircache_entry *up;
68 struct dircache_entry *down; 69 struct dircache_entry *down;
69 int attribute;
70 long size;
71 long startcluster; 70 long startcluster;
72 unsigned short wrtdate;
73 unsigned short wrttime;
74 unsigned long name_len; 71 unsigned long name_len;
75 char *d_name; 72 char *d_name;
76}; 73};
77 74
78struct dirent_cached { 75struct dirent_cached {
76 struct dirinfo info;
79 char *d_name; 77 char *d_name;
80 int attribute;
81 long size;
82 long startcluster; 78 long startcluster;
83 unsigned short wrtdate; /* Last write date */
84 unsigned short wrttime; /* Last write time */
85}; 79};
86 80
87typedef struct { 81typedef struct {