Added cpu_boost() to the plugin API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6102 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3e1d8e4a5d
commit
e002b9cfd0
2 changed files with 7 additions and 1 deletions
|
@ -260,6 +260,9 @@ static const struct plugin_api rockbox_api = {
|
|||
the API gets incompatible */
|
||||
#ifndef SIMULATOR
|
||||
&cpu_frequency,
|
||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||
cpu_boost,
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
#endif
|
||||
|
||||
/* increase this every time the api struct changes */
|
||||
#define PLUGIN_API_VERSION 33
|
||||
#define PLUGIN_API_VERSION 34
|
||||
|
||||
/* update this to latest version if a change to the api struct breaks
|
||||
backwards compatibility (and please take the opportunity to sort in any
|
||||
|
@ -309,6 +309,9 @@ struct plugin_api {
|
|||
the API gets incompatible */
|
||||
#ifndef SIMULATOR
|
||||
long *cpu_frequency;
|
||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||
void (*cpu_boost)(bool on_off);
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue