diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-02-09 11:50:04 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-02-09 11:50:04 +0000 |
commit | b5a5d2cecc94133922d544ec1787ac85578dd7e5 (patch) | |
tree | 7570839c93764a89dd8b7dcc8dfc38e20b4d8bca | |
parent | e1e4a3ca50a255522d231a6d46dab026b4cd6b8b (diff) | |
download | rockbox-b5a5d2cecc94133922d544ec1787ac85578dd7e5.tar.gz rockbox-b5a5d2cecc94133922d544ec1787ac85578dd7e5.zip |
strchr() added to the plugin API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5866 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugin.c | 1 | ||||
-rw-r--r-- | apps/plugin.h | 3 |
2 files changed, 3 insertions, 1 deletions
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 = { | |||
262 | /* new stuff at the end, sort into place next time | 262 | /* new stuff at the end, sort into place next time |
263 | the API gets incompatible */ | 263 | the API gets incompatible */ |
264 | 264 | ||
265 | strchr, | ||
265 | }; | 266 | }; |
266 | 267 | ||
267 | int plugin_load(const char* plugin, void* parameter) | 268 | 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 @@ | |||
60 | #endif | 60 | #endif |
61 | 61 | ||
62 | /* increase this every time the api struct changes */ | 62 | /* increase this every time the api struct changes */ |
63 | #define PLUGIN_API_VERSION 29 | 63 | #define PLUGIN_API_VERSION 30 |
64 | 64 | ||
65 | /* update this to latest version if a change to the api struct breaks | 65 | /* update this to latest version if a change to the api struct breaks |
66 | backwards compatibility (and please take the opportunity to sort in any | 66 | backwards compatibility (and please take the opportunity to sort in any |
@@ -298,6 +298,7 @@ struct plugin_api { | |||
298 | /* new stuff at the end, sort into place next time | 298 | /* new stuff at the end, sort into place next time |
299 | the API gets incompatible */ | 299 | the API gets incompatible */ |
300 | 300 | ||
301 | char (*strchr)(const char *s, int c); | ||
301 | }; | 302 | }; |
302 | 303 | ||
303 | /* defined by the plugin loader (plugin.c) */ | 304 | /* defined by the plugin loader (plugin.c) */ |