diff options
| -rw-r--r-- | apps/plugin.c | 2 | ||||
| -rw-r--r-- | apps/plugin.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 9ffb980..04a4d1c 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -466,6 +466,8 @@ static const struct plugin_api rockbox_api = { /* new stuff at the end, sort into place next time the API gets incompatible */ + + strtok_r, }; int plugin_load(const char* plugin, void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index b89dfd0..b0221c4 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -105,7 +105,7 @@ #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 30 +#define PLUGIN_API_VERSION 31 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -545,6 +545,8 @@ struct plugin_api { /* new stuff at the end, sort into place next time the API gets incompatible */ + + char* (*strtok_r)(char *ptr, const char *sep, char **end); }; /* plugin header */ |