diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-03-02 14:32:53 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-03-02 14:32:53 +0000 |
commit | e002b9cfd0c94b77643859948649251fe67b7695 (patch) | |
tree | 7ea5b10bbd932948027bb080e79b899b75bb9b51 /apps | |
parent | 3e1d8e4a5d0e0f49eec494acbf8190e624085d71 (diff) | |
download | rockbox-e002b9cfd0c94b77643859948649251fe67b7695.tar.gz rockbox-e002b9cfd0c94b77643859948649251fe67b7695.zip |
Added cpu_boost() to the plugin API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6102 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 3 | ||||
-rw-r--r-- | apps/plugin.h | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 63efcb5602..86e4a25523 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -260,6 +260,9 @@ static const struct plugin_api rockbox_api = { | |||
260 | the API gets incompatible */ | 260 | the API gets incompatible */ |
261 | #ifndef SIMULATOR | 261 | #ifndef SIMULATOR |
262 | &cpu_frequency, | 262 | &cpu_frequency, |
263 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
264 | cpu_boost, | ||
265 | #endif | ||
263 | #endif | 266 | #endif |
264 | }; | 267 | }; |
265 | 268 | ||
diff --git a/apps/plugin.h b/apps/plugin.h index 840d495421..75da6627be 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -69,7 +69,7 @@ | |||
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | /* increase this every time the api struct changes */ | 71 | /* increase this every time the api struct changes */ |
72 | #define PLUGIN_API_VERSION 33 | 72 | #define PLUGIN_API_VERSION 34 |
73 | 73 | ||
74 | /* update this to latest version if a change to the api struct breaks | 74 | /* update this to latest version if a change to the api struct breaks |
75 | backwards compatibility (and please take the opportunity to sort in any | 75 | backwards compatibility (and please take the opportunity to sort in any |
@@ -309,6 +309,9 @@ struct plugin_api { | |||
309 | the API gets incompatible */ | 309 | the API gets incompatible */ |
310 | #ifndef SIMULATOR | 310 | #ifndef SIMULATOR |
311 | long *cpu_frequency; | 311 | long *cpu_frequency; |
312 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
313 | void (*cpu_boost)(bool on_off); | ||
314 | #endif | ||
312 | #endif | 315 | #endif |
313 | }; | 316 | }; |
314 | 317 | ||