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.h | |
| 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.h')
| -rw-r--r-- | apps/plugin.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 12953eb..dab3320 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -25,6 +25,10 @@ #define NO_REDEFINES_PLEASE #endif +#ifndef MEM +#define MEM 2 +#endif + #include <stdbool.h> #include <stdio.h> #include <stdlib.h> @@ -37,7 +41,7 @@ #include "lcd.h" /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 3 +#define PLUGIN_API_VERSION 4 /* plugin return codes */ enum plugin_status { @@ -64,7 +68,7 @@ enum model { /* compatibility test macro */ #define TEST_PLUGIN_API(_api_) \ do { \ - int _rc_ = _api_->plugin_test(PLUGIN_API_VERSION, MODEL); \ + int _rc_ = _api_->plugin_test(PLUGIN_API_VERSION, MODEL, MEM); \ if (_rc_<0) \ return _rc_; \ } while(0) @@ -73,7 +77,7 @@ struct plugin_api { /* these two fields must always be first, to ensure TEST_PLUGIN_API will always work */ int version; - int (*plugin_test)(int api_version, int model); + int (*plugin_test)(int api_version, int model, int memsize); /* lcd */ void (*lcd_clear_display)(void); |