summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index c950c66..c4fd101 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -41,6 +41,7 @@
#include "ata.h"
#include "talk.h"
#include "mp3data.h"
+#include "powermgmt.h"
#ifdef HAVE_LCD_BITMAP
#include "widgets.h"
@@ -166,6 +167,7 @@ static struct plugin_api rockbox_api = {
atoi,
get_time,
plugin_get_buffer,
+ battery_level,
/* new stuff at the end, sort into place next time the API gets incompatible */
diff --git a/apps/plugin.h b/apps/plugin.h
index e0a7b08..e66f1a3 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -195,6 +195,7 @@ struct plugin_api {
int (*atoi)(const char *str);
struct tm* (*get_time)(void);
void* (*plugin_get_buffer)(int* buffer_size);
+ int (*battery_level)(void);
/* new stuff, sort in next time the API gets broken! */
#ifndef HAVE_LCD_CHARCELLS