diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-12-22 09:11:09 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-12-22 09:11:09 +0000 |
commit | c8a9ca748d0a3b1961f6577159a9de8ac4af60e7 (patch) | |
tree | 16f719514542087f5a2e0d5bac8d30b4fce5910a /firmware/include | |
parent | 7258b5e51a78e4d990bf1225c5893dc4b78d78b7 (diff) | |
download | rockbox-c8a9ca748d0a3b1961f6577159a9de8ac4af60e7.tar.gz rockbox-c8a9ca748d0a3b1961f6577159a9de8ac4af60e7.zip |
Try to make sure dircache state file on flashed H1xx targets is
handled correctly and no old state is never used.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11833 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/dircache.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/include/dircache.h b/firmware/include/dircache.h index 9c3bc68ddc..1483843a73 100644 --- a/firmware/include/dircache.h +++ b/firmware/include/dircache.h | |||
@@ -25,7 +25,8 @@ | |||
25 | 25 | ||
26 | #define DIRCACHE_RESERVE (1024*64) | 26 | #define DIRCACHE_RESERVE (1024*64) |
27 | #define DIRCACHE_LIMIT (1024*1024*6) | 27 | #define DIRCACHE_LIMIT (1024*1024*6) |
28 | #define DIRCACHE_FILE ROCKBOX_DIR "/dircache.dat" | 28 | /* FIXME: We should use ROCKBOX_DIR here but it's defined in apps/ */ |
29 | #define DIRCACHE_FILE "/.rockbox/dircache.dat" | ||
29 | 30 | ||
30 | /* Internal structures. */ | 31 | /* Internal structures. */ |
31 | struct travel_data { | 32 | struct travel_data { |
@@ -80,8 +81,8 @@ typedef struct { | |||
80 | } DIRCACHED; | 81 | } DIRCACHED; |
81 | 82 | ||
82 | void dircache_init(void); | 83 | void dircache_init(void); |
83 | int dircache_load(const char *path); | 84 | int dircache_load(void); |
84 | int dircache_save(const char *path); | 85 | int dircache_save(void); |
85 | int dircache_build(int last_size); | 86 | int dircache_build(int last_size); |
86 | void* dircache_steal_buffer(long *size); | 87 | void* dircache_steal_buffer(long *size); |
87 | bool dircache_is_enabled(void); | 88 | bool dircache_is_enabled(void); |