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.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 12953ebc4d..dab3320b2a 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 #include #include @@ -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); -- cgit v1.2.3