summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index c4fd101b16..9354fabfed 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -167,7 +167,6 @@ static struct plugin_api rockbox_api = {
167 atoi, 167 atoi,
168 get_time, 168 get_time,
169 plugin_get_buffer, 169 plugin_get_buffer,
170 battery_level,
171 170
172 /* new stuff at the end, sort into place next time the API gets incompatible */ 171 /* new stuff at the end, sort into place next time the API gets incompatible */
173 172
@@ -232,6 +231,7 @@ static struct plugin_api rockbox_api = {
232 mas_codec_writereg, 231 mas_codec_writereg,
233#endif 232#endif
234#endif 233#endif
234 battery_level,
235}; 235};
236 236
237int plugin_load(char* plugin, void* parameter) 237int plugin_load(char* plugin, void* parameter)
diff --git a/apps/plugin.h b/apps/plugin.h
index 8a871492f6..56a0ef6843 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -195,7 +195,6 @@ struct plugin_api {
195 int (*atoi)(const char *str); 195 int (*atoi)(const char *str);
196 struct tm* (*get_time)(void); 196 struct tm* (*get_time)(void);
197 void* (*plugin_get_buffer)(int* buffer_size); 197 void* (*plugin_get_buffer)(int* buffer_size);
198 int (*battery_level)(void);
199 198
200 /* new stuff, sort in next time the API gets broken! */ 199 /* new stuff, sort in next time the API gets broken! */
201#ifndef HAVE_LCD_CHARCELLS 200#ifndef HAVE_LCD_CHARCELLS
@@ -266,6 +265,7 @@ struct plugin_api {
266 int (*mas_codec_writereg)(int reg, unsigned int val); 265 int (*mas_codec_writereg)(int reg, unsigned int val);
267#endif 266#endif
268#endif 267#endif
268 int (*battery_level)(void);
269}; 269};
270 270
271/* defined by the plugin loader (plugin.c) */ 271/* defined by the plugin loader (plugin.c) */