summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorKevin Ferrare <kevin@rockbox.org>2007-07-20 17:06:55 +0000
committerKevin Ferrare <kevin@rockbox.org>2007-07-20 17:06:55 +0000
commit011a325e32c05f6e4817dcdc555615e6b7b6c102 (patch)
treeab22ab91b99524dba823cda861b17520db030911 /apps/plugin.c
parent930278bcc0fd944ec50f30074b53b4c7cf0e3ccf (diff)
downloadrockbox-011a325e32c05f6e4817dcdc555615e6b7b6c102.tar.gz
rockbox-011a325e32c05f6e4817dcdc555615e6b7b6c102.zip
Makes apps and plugins interract with directories using a posix-like api instead of calling dircache / simulator functions (no additionnal layer added, only a cosmetic change)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13943 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index aff24e0059..68b430d2f3 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -222,18 +222,11 @@ static const struct plugin_api rockbox_api = {
222 create_numbered_filename, 222 create_numbered_filename,
223 223
224 /* dir */ 224 /* dir */
225 PREFIX(opendir), 225 opendir,
226 PREFIX(closedir), 226 closedir,
227 PREFIX(readdir), 227 readdir,
228 PREFIX(mkdir), 228 mkdir,
229 PREFIX(rmdir), 229 rmdir,
230
231 /* dir, cached */
232#ifdef HAVE_DIRCACHE
233 opendir_cached,
234 readdir_cached,
235 closedir_cached,
236#endif
237 230
238 /* kernel/ system */ 231 /* kernel/ system */
239 PREFIX(sleep), 232 PREFIX(sleep),