diff --git a/apps/plugin.c b/apps/plugin.c index 6c92364a0e..69e84c1809 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -262,6 +262,7 @@ static const struct plugin_api rockbox_api = { /* new stuff at the end, sort into place next time the API gets incompatible */ + strchr, }; int plugin_load(const char* plugin, void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index bd9cd5a332..cb9bdb7f9d 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -60,7 +60,7 @@ #endif /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 29 +#define PLUGIN_API_VERSION 30 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -298,6 +298,7 @@ struct plugin_api { /* new stuff at the end, sort into place next time the API gets incompatible */ + char (*strchr)(const char *s, int c); }; /* defined by the plugin loader (plugin.c) */