diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-04-13 12:24:47 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-04-13 12:24:47 +0000 |
commit | 2bf4178018930b8af6d7082f7dd1a3302e09932b (patch) | |
tree | 3f6e2177e31f09157fc782d4239b944a6f6d8963 /apps/plugin.h | |
parent | 4c5a735a023755cedc264a4cad89f1ab0c256e17 (diff) | |
download | rockbox-2bf4178018930b8af6d7082f7dd1a3302e09932b.tar.gz rockbox-2bf4178018930b8af6d7082f7dd1a3302e09932b.zip |
Make mpegplayer sleep the disk after buffering to save battery. * Add a simulator stub for ata_sleep(), and un-ifdef most calls to it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17096 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index c638688753..2db38eda4c 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -120,12 +120,12 @@ | |||
120 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 120 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
121 | 121 | ||
122 | /* increase this every time the api struct changes */ | 122 | /* increase this every time the api struct changes */ |
123 | #define PLUGIN_API_VERSION 107 | 123 | #define PLUGIN_API_VERSION 108 |
124 | 124 | ||
125 | /* update this to latest version if a change to the api struct breaks | 125 | /* update this to latest version if a change to the api struct breaks |
126 | backwards compatibility (and please take the opportunity to sort in any | 126 | backwards compatibility (and please take the opportunity to sort in any |
127 | new function which are "waiting" at the end of the function table) */ | 127 | new function which are "waiting" at the end of the function table) */ |
128 | #define PLUGIN_MIN_API_VERSION 107 | 128 | #define PLUGIN_MIN_API_VERSION 108 |
129 | 129 | ||
130 | /* plugin return codes */ | 130 | /* plugin return codes */ |
131 | enum plugin_status { | 131 | enum plugin_status { |
@@ -331,8 +331,8 @@ struct plugin_api { | |||
331 | int (*fdprintf)(int fd, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3); | 331 | int (*fdprintf)(int fd, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3); |
332 | int (*read_line)(int fd, char* buffer, int buffer_size); | 332 | int (*read_line)(int fd, char* buffer, int buffer_size); |
333 | bool (*settings_parseline)(char* line, char** name, char** value); | 333 | bool (*settings_parseline)(char* line, char** name, char** value); |
334 | #ifndef SIMULATOR | ||
335 | void (*ata_sleep)(void); | 334 | void (*ata_sleep)(void); |
335 | #ifndef SIMULATOR | ||
336 | bool (*ata_disk_is_active)(void); | 336 | bool (*ata_disk_is_active)(void); |
337 | #endif | 337 | #endif |
338 | void (*ata_spin)(void); | 338 | void (*ata_spin)(void); |