summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-02-03 23:56:25 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-02-03 23:56:25 +0000
commitfacfec0c7737b57cdaf6ef7e80d9b43571e975f1 (patch)
tree40d4ca9958a0dba522ff487f202191d2ade97767 /apps
parentf4489561693708093c6145777e70db07a65ec0e0 (diff)
downloadrockbox-facfec0c7737b57cdaf6ef7e80d9b43571e975f1.zip
rockbox-facfec0c7737b57cdaf6ef7e80d9b43571e975f1.tar.gz
rockbox-facfec0c7737b57cdaf6ef7e80d9b43571e975f1.tar.bz2
rockbox-facfec0c7737b57cdaf6ef7e80d9b43571e975f1.tar.xz
give plugins access to ata_sleep(), useful for my next video player
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4292 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c4
-rw-r--r--apps/plugin.h9
2 files changed, 10 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index e010ebe..08c9801 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -37,6 +37,7 @@
#include "buffer.h"
#include "mp3_playback.h"
#include "backlight.h"
+#include "ata.h"
#ifdef HAVE_LCD_BITMAP
#include "widgets.h"
@@ -180,6 +181,9 @@ static struct plugin_api rockbox_api = {
#endif
&global_settings,
backlight_set_timeout,
+#ifndef SIMULATOR
+ ata_sleep,
+#endif
};
int plugin_load(char* plugin, void* parameter)
diff --git a/apps/plugin.h b/apps/plugin.h
index 2bcdffb..8682deb 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -45,10 +45,11 @@
#include "settings.h"
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 10
+#define PLUGIN_API_VERSION 11
/* update this to latest version if a change to the api struct breaks
- backwards compatibility */
+ backwards compatibility (and please take the opportunity to sort in any
+ new function which are "waiting" at the end of the function table) */
#define PLUGIN_MIN_API_VERSION 9
/* plugin return codes */
@@ -187,7 +188,6 @@ struct plugin_api {
/* new stuff, sort in next time the API gets broken! */
#ifndef HAVE_LCD_CHARCELLS
unsigned char* lcd_framebuffer;
- /* performance function */
void (*lcd_blit) (unsigned char* p_data, int x, int y, int width, int height, int stride);
#endif
void (*yield)(void);
@@ -204,6 +204,9 @@ struct plugin_api {
#endif
struct user_settings* global_settings;
void (*backlight_set_timeout)(int index);
+#ifndef SIMULATOR
+ void (*ata_sleep)(void);
+#endif
};
/* defined by the plugin loader (plugin.c) */