diff options
| -rw-r--r-- | apps/plugin.c | 4 | ||||
| -rw-r--r-- | apps/plugin.h | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 38bc25b..e4c95cd 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -265,6 +265,10 @@ static const struct plugin_api rockbox_api = { #endif #endif PREFIX(mkdir), +#if CONFIG_KEYPAD == IRIVER_H100_PAD + button_hold, +#endif + }; int plugin_load(const char* plugin, void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index fdabdbd..1cdbd61 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -69,7 +69,7 @@ #endif /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 35 +#define PLUGIN_API_VERSION 36 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -314,6 +314,9 @@ struct plugin_api { #endif #endif int (*PREFIX(mkdir))(const char *name, int mode); +#if CONFIG_KEYPAD == IRIVER_H100_PAD + bool (*button_hold)(void); +#endif }; /* defined by the plugin loader (plugin.c) */ |