diff options
author | Björn Stenberg <bjorn@haxx.se> | 2004-06-15 22:54:37 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2004-06-15 22:54:37 +0000 |
commit | dd265830cb56057280728ffbfbbcc2d62db127c4 (patch) | |
tree | 9701d010fb8ab69893ef139b9649529cb1ac8f1e /apps | |
parent | 5b9c4c12974adedbdf8cafd151716eb82d6f26be (diff) | |
download | rockbox-dd265830cb56057280728ffbfbbcc2d62db127c4.tar.gz rockbox-dd265830cb56057280728ffbfbbcc2d62db127c4.zip |
Added battery_level()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4748 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 2 | ||||
-rw-r--r-- | apps/plugin.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index c950c665d0..c4fd101b16 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include "ata.h" | 41 | #include "ata.h" |
42 | #include "talk.h" | 42 | #include "talk.h" |
43 | #include "mp3data.h" | 43 | #include "mp3data.h" |
44 | #include "powermgmt.h" | ||
44 | 45 | ||
45 | #ifdef HAVE_LCD_BITMAP | 46 | #ifdef HAVE_LCD_BITMAP |
46 | #include "widgets.h" | 47 | #include "widgets.h" |
@@ -166,6 +167,7 @@ static struct plugin_api rockbox_api = { | |||
166 | atoi, | 167 | atoi, |
167 | get_time, | 168 | get_time, |
168 | plugin_get_buffer, | 169 | plugin_get_buffer, |
170 | battery_level, | ||
169 | 171 | ||
170 | /* new stuff at the end, sort into place next time the API gets incompatible */ | 172 | /* new stuff at the end, sort into place next time the API gets incompatible */ |
171 | 173 | ||
diff --git a/apps/plugin.h b/apps/plugin.h index e0a7b083b9..e66f1a3b3c 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -195,6 +195,7 @@ 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); | ||
198 | 199 | ||
199 | /* new stuff, sort in next time the API gets broken! */ | 200 | /* new stuff, sort in next time the API gets broken! */ |
200 | #ifndef HAVE_LCD_CHARCELLS | 201 | #ifndef HAVE_LCD_CHARCELLS |