forked from len0rd/rockbox
Moved battery_level() to the end, where it doesn't break backwards compatibility
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4750 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8fb1141697
commit
b876296c9b
2 changed files with 2 additions and 2 deletions
|
@ -167,7 +167,6 @@ 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 */
|
||||
|
||||
|
@ -232,6 +231,7 @@ static struct plugin_api rockbox_api = {
|
|||
mas_codec_writereg,
|
||||
#endif
|
||||
#endif
|
||||
battery_level,
|
||||
};
|
||||
|
||||
int plugin_load(char* plugin, void* parameter)
|
||||
|
|
|
@ -195,7 +195,6 @@ 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
|
||||
|
@ -266,6 +265,7 @@ struct plugin_api {
|
|||
int (*mas_codec_writereg)(int reg, unsigned int val);
|
||||
#endif
|
||||
#endif
|
||||
int (*battery_level)(void);
|
||||
};
|
||||
|
||||
/* defined by the plugin loader (plugin.c) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue