diff options
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 | } |