Added battery_level()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4748 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5b9c4c1297
commit
dd265830cb
2 changed files with 3 additions and 0 deletions
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue