From 011a325e32c05f6e4817dcdc555615e6b7b6c102 Mon Sep 17 00:00:00 2001 From: Kevin Ferrare Date: Fri, 20 Jul 2007 17:06:55 +0000 Subject: 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 --- apps/plugin.h | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 920d804ab5..ac6988152a 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -37,9 +37,6 @@ #include "config.h" #include "system.h" #include "dir.h" -#ifndef SIMULATOR -#include "dircache.h" -#endif #include "kernel.h" #include "thread.h" #include "button.h" @@ -115,12 +112,12 @@ #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 62 +#define PLUGIN_API_VERSION 63 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any new function which are "waiting" at the end of the function table) */ -#define PLUGIN_MIN_API_VERSION 62 +#define PLUGIN_MIN_API_VERSION 63 /* plugin return codes */ enum plugin_status { @@ -316,17 +313,11 @@ struct plugin_api { int numberlen IF_CNFN_NUM_(, int *num)); /* dir */ - DIR* (*PREFIX(opendir))(const char* name); - int (*PREFIX(closedir))(DIR* dir); - struct dirent* (*PREFIX(readdir))(DIR* dir); - int (*PREFIX(mkdir))(const char *name); - int (*PREFIX(rmdir))(const char *name); - /* dir, cached */ -#ifdef HAVE_DIRCACHE - DIRCACHED* (*opendir_cached)(const char* name); - struct dircache_entry* (*readdir_cached)(DIRCACHED* dir); - int (*closedir_cached)(DIRCACHED* dir); -#endif + DIR* (*opendir)(const char* name); + int (*closedir)(DIR* dir); + struct dirent* (*readdir)(DIR* dir); + int (*mkdir)(const char *name); + int (*rmdir)(const char *name); /* kernel/ system */ void (*PREFIX(sleep))(int ticks); -- cgit v1.2.3