diff options
author | Björn Stenberg <bjorn@haxx.se> | 2003-07-13 22:15:19 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2003-07-13 22:15:19 +0000 |
commit | 13d56150b6678841a67cdca5acbb484814e78ce7 (patch) | |
tree | 0b20688a008f0037301f31945fcd5ad43b946d28 /apps/plugin.c | |
parent | 9cb5e0e9f94e0660682f35b7ae2d55a82f009f03 (diff) | |
download | rockbox-13d56150b6678841a67cdca5acbb484814e78ce7.tar.gz rockbox-13d56150b6678841a67cdca5acbb484814e78ce7.zip |
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
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 @@ | |||
49 | #define PREFIX(_x_) _x_ | 49 | #define PREFIX(_x_) _x_ |
50 | #endif | 50 | #endif |
51 | 51 | ||
52 | static int plugin_test(int api_version, int model); | 52 | static int plugin_test(int api_version, int model, int memsize); |
53 | 53 | ||
54 | static struct plugin_api rockbox_api = { | 54 | static struct plugin_api rockbox_api = { |
55 | PLUGIN_API_VERSION, | 55 | PLUGIN_API_VERSION, |
@@ -230,7 +230,7 @@ int plugin_load(char* plugin, void* parameter) | |||
230 | return PLUGIN_OK; | 230 | return PLUGIN_OK; |
231 | } | 231 | } |
232 | 232 | ||
233 | int plugin_test(int api_version, int model) | 233 | int plugin_test(int api_version, int model, int memsize) |
234 | { | 234 | { |
235 | if (api_version != PLUGIN_API_VERSION) | 235 | if (api_version != PLUGIN_API_VERSION) |
236 | return PLUGIN_WRONG_API_VERSION; | 236 | return PLUGIN_WRONG_API_VERSION; |
@@ -238,5 +238,8 @@ int plugin_test(int api_version, int model) | |||
238 | if (model != MODEL) | 238 | if (model != MODEL) |
239 | return PLUGIN_WRONG_MODEL; | 239 | return PLUGIN_WRONG_MODEL; |
240 | 240 | ||
241 | if (memsize != MEM) | ||
242 | return PLUGIN_WRONG_MODEL; | ||
243 | |||
241 | return PLUGIN_OK; | 244 | return PLUGIN_OK; |
242 | } | 245 | } |