memcmp() added to the plugin API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5949 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
81395dbb7d
commit
aac6e7d24e
2 changed files with 3 additions and 2 deletions
|
@ -265,6 +265,7 @@ static const struct plugin_api rockbox_api = {
|
||||||
|
|
||||||
strchr,
|
strchr,
|
||||||
strcat,
|
strcat,
|
||||||
|
memcmp
|
||||||
};
|
};
|
||||||
|
|
||||||
int plugin_load(const char* plugin, void* parameter)
|
int plugin_load(const char* plugin, void* parameter)
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* increase this every time the api struct changes */
|
/* 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
|
/* update this to latest version if a change to the api struct breaks
|
||||||
backwards compatibility (and please take the opportunity to sort in any
|
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 *(*strchr)(const char *s, int c);
|
||||||
char *(*strcat)(char *s1, const char *s2);
|
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) */
|
/* defined by the plugin loader (plugin.c) */
|
||||||
|
|
Loading…
Reference in a new issue