forked from len0rd/rockbox
Added settings_parseline() and strcmp() to the plugin API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4889 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8e7e35c510
commit
06a2ffd962
2 changed files with 5 additions and 1 deletions
|
|
@ -251,6 +251,8 @@ static struct plugin_api rockbox_api = {
|
||||||
lcd_put_cursor,
|
lcd_put_cursor,
|
||||||
lcd_remove_cursor,
|
lcd_remove_cursor,
|
||||||
#endif
|
#endif
|
||||||
|
settings_parseline,
|
||||||
|
strcmp,
|
||||||
};
|
};
|
||||||
|
|
||||||
int plugin_load(char* plugin, void* parameter)
|
int plugin_load(char* plugin, void* parameter)
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* increase this every time the api struct changes */
|
/* increase this every time the api struct changes */
|
||||||
#define PLUGIN_API_VERSION 20
|
#define PLUGIN_API_VERSION 21
|
||||||
|
|
||||||
/* update this to latest version if a change to the api struct breaks
|
/* update this to latest version if a change to the api struct breaks
|
||||||
backwards compatibility (and please take the opportunity to sort in any
|
backwards compatibility (and please take the opportunity to sort in any
|
||||||
|
|
@ -287,6 +287,8 @@ struct plugin_api {
|
||||||
void (*lcd_put_cursor)(int x, int y, char cursor_char);
|
void (*lcd_put_cursor)(int x, int y, char cursor_char);
|
||||||
void (*lcd_remove_cursor)(void);
|
void (*lcd_remove_cursor)(void);
|
||||||
#endif
|
#endif
|
||||||
|
bool (*settings_parseline)(char* line, char** name, char** value);
|
||||||
|
int (*strcmp)(const char *, const char *);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* defined by the plugin loader (plugin.c) */
|
/* defined by the plugin loader (plugin.c) */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue