diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-06-20 20:12:42 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-06-20 20:12:42 +0000 |
commit | af7aaae478b5c7382ae5505abab233a97aa3e658 (patch) | |
tree | 566d2e728aefb9f0e6b19edfd3519bf2826339e3 /firmware/common/filefuncs.c | |
parent | 0b9c57d33e59a26b1f341632b990aff0dffd0fcb (diff) | |
download | rockbox-af7aaae478b5c7382ae5505abab233a97aa3e658.tar.gz rockbox-af7aaae478b5c7382ae5505abab233a97aa3e658.zip |
Dircache: Don't expose struct dircache_entry and pointers into the cache, use IDs instead.
Only integer IDs are exposed from dircache with this. This way the cache is isolated from other modules.
This is needed for my buflib gsoc project.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30038 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/filefuncs.c')
-rw-r--r-- | firmware/common/filefuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/filefuncs.c b/firmware/common/filefuncs.c index 6eb2bafa40..fd33f3c6f9 100644 --- a/firmware/common/filefuncs.c +++ b/firmware/common/filefuncs.c | |||
@@ -70,7 +70,7 @@ bool file_exists(const char *file) | |||
70 | 70 | ||
71 | #ifdef HAVE_DIRCACHE | 71 | #ifdef HAVE_DIRCACHE |
72 | if (dircache_is_enabled()) | 72 | if (dircache_is_enabled()) |
73 | return (dircache_get_entry_ptr(file) != NULL); | 73 | return (dircache_get_entry_id(file) >= 0); |
74 | #endif | 74 | #endif |
75 | 75 | ||
76 | fd = open(file, O_RDONLY); | 76 | fd = open(file, O_RDONLY); |