From aac6e7d24e94ddd2c2f6d547bddc579876aa35e3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 15 Feb 2005 13:03:29 +0000 Subject: [PATCH] memcmp() added to the plugin API git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5949 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 1 + apps/plugin.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/plugin.c b/apps/plugin.c index 7b26b0dd57..b9b88164b6 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 0d1a9b2fa4..3b8d022219 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) */