summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-03-02 14:32:53 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-03-02 14:32:53 +0000
commite002b9cfd0c94b77643859948649251fe67b7695 (patch)
tree7ea5b10bbd932948027bb080e79b899b75bb9b51
parent3e1d8e4a5d0e0f49eec494acbf8190e624085d71 (diff)
Added cpu_boost() to the plugin API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6102 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugin.c3
-rw-r--r--apps/plugin.h5
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 = {
the API gets incompatible */
#ifndef SIMULATOR
&cpu_frequency,
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+ cpu_boost,
+#endif
#endif
};
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 @@
#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
};