From d7f3d1c8ec502f8e89f7f6fe8fb185ea15715928 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 1 Mar 2005 14:36:16 +0000 Subject: [PATCH] Added cpu_frequency to the plugin API git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6094 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 3 +++ apps/plugin.h | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/plugin.c b/apps/plugin.c index 6b429c3175..63efcb5602 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -258,6 +258,9 @@ static const struct plugin_api rockbox_api = { /* new stuff at the end, sort into place next time the API gets incompatible */ +#ifndef SIMULATOR + &cpu_frequency, +#endif }; int plugin_load(const char* plugin, void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index f2e86218ea..840d495421 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 32 +#define PLUGIN_API_VERSION 33 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -307,6 +307,9 @@ struct plugin_api { /* new stuff at the end, sort into place next time the API gets incompatible */ +#ifndef SIMULATOR + long *cpu_frequency; +#endif }; /* defined by the plugin loader (plugin.c) */