From 8123dffaead8912e9bdf9d1d49e87501bb8e09ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Sat, 16 Oct 2010 12:30:06 +0000 Subject: Remove some inconsistent guarding around cpucache_* functions to fix a test_codec crash on coldfire, breaks plugin api compatibility so sorted and bumped version numbers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28287 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 6c402f6..316c7c6 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -344,6 +344,7 @@ static const struct plugin_api rockbox_api = { mkdir, rmdir, dir_exists, + dir_get_info, /* kernel/ system */ #if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE @@ -384,12 +385,15 @@ static const struct plugin_api rockbox_api = { trigger_cpu_boost, cancel_cpu_boost, #endif -#ifdef HAVE_CPUCACHE_FLUSH + cpucache_flush, -#endif -#ifdef HAVE_CPUCACHE_INVALIDATE cpucache_invalidate, -#endif + + lc_open, + lc_open_from_mem, + lc_get_header, + lc_close, + timer_register, timer_unregister, timer_set_period, @@ -722,12 +726,6 @@ static const struct plugin_api rockbox_api = { /* new stuff at the end, sort into place next time the API gets incompatible */ - dir_get_info, - - lc_open, - lc_open_from_mem, - lc_get_header, - lc_close, }; int plugin_load(const char* plugin, const void* parameter) -- cgit v1.1