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.zip rockbox-13d56150b6678841a67cdca5acbb484814e78ce7.tar.gz rockbox-13d56150b6678841a67cdca5acbb484814e78ce7.tar.bz2 rockbox-13d56150b6678841a67cdca5acbb484814e78ce7.tar.xz | |
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 01604c0..ad3cbdc 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; } |