summaryrefslogtreecommitdiff
path: root/apps/plugin.h
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.h
parent930278bcc0fd944ec50f30074b53b4c7cf0e3ccf (diff)
downloadrockbox-011a325e32c05f6e4817dcdc555615e6b7b6c102.zip
rockbox-011a325e32c05f6e4817dcdc555615e6b7b6c102.tar.gz
rockbox-011a325e32c05f6e4817dcdc555615e6b7b6c102.tar.bz2
rockbox-011a325e32c05f6e4817dcdc555615e6b7b6c102.tar.xz
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.h')
-rw-r--r--apps/plugin.h23
1 files changed, 7 insertions, 16 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 920d804..ac69881 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);