From b5a5d2cecc94133922d544ec1787ac85578dd7e5 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Wed, 9 Feb 2005 11:50:04 +0000 Subject: strchr() added to the plugin API git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5866 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 1 + apps/plugin.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'apps') 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) */ -- cgit v1.2.3