From 13d56150b6678841a67cdca5acbb484814e78ce7 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Sun, 13 Jul 2003 22:15:19 +0000 Subject: Added plugin support for 8MB-modified units. This bumps the plugin API version number again. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3831 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 01604c0e24..ad3cbdca43 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -49,7 +49,7 @@ #define PREFIX(_x_) _x_ #endif -static int plugin_test(int api_version, int model); +static int plugin_test(int api_version, int model, int memsize); static struct plugin_api rockbox_api = { PLUGIN_API_VERSION, @@ -230,7 +230,7 @@ int plugin_load(char* plugin, void* parameter) return PLUGIN_OK; } -int plugin_test(int api_version, int model) +int plugin_test(int api_version, int model, int memsize) { if (api_version != PLUGIN_API_VERSION) return PLUGIN_WRONG_API_VERSION; @@ -238,5 +238,8 @@ int plugin_test(int api_version, int model) if (model != MODEL) return PLUGIN_WRONG_MODEL; + if (memsize != MEM) + return PLUGIN_WRONG_MODEL; + return PLUGIN_OK; } -- cgit v1.2.3