summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugin.c1
-rw-r--r--apps/plugin.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 7b26b0d..b9b8816 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -265,6 +265,7 @@ static const struct plugin_api rockbox_api = {
strchr,
strcat,
+ memcmp
};
int plugin_load(const char* plugin, void* parameter)
diff --git a/apps/plugin.h b/apps/plugin.h
index 0d1a9b2..3b8d022 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 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
@@ -300,7 +300,7 @@ struct plugin_api {
char *(*strchr)(const char *s, int c);
char *(*strcat)(char *s1, const char *s2);
-
+ int (*memcmp)(const void *s1, const void *s2, size_t n);
};
/* defined by the plugin loader (plugin.c) */