From 3ebb836b52d1e5b3aed1aa74afac9a11b76ff8d5 Mon Sep 17 00:00:00 2001 From: Jeffrey Goode Date: Tue, 18 Aug 2009 03:45:18 +0000 Subject: Fix red: plugins on hwcodec targets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22395 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 2 ++ apps/plugin.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/plugin.c b/apps/plugin.c index 674740cf83..8c1ecb8394 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -668,7 +668,9 @@ static const struct plugin_api rockbox_api = { appsversion, /* new stuff at the end, sort into place next time the API gets incompatible */ +#if CONFIG_CODEC == SWCODEC dsp_flush_limiter_buffer, +#endif }; int plugin_load(const char* plugin, const void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index d47cf031ff..b873cbf6ef 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -133,7 +133,7 @@ void* plugin_get_buffer(size_t *buffer_size); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 167 +#define PLUGIN_API_VERSION 168 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -836,7 +836,9 @@ struct plugin_api { const char *appsversion; /* new stuff at the end, sort into place next time the API gets incompatible */ +#if CONFIG_CODEC == SWCODEC int (*dsp_flush_limiter_buffer)(char *dest); +#endif }; /* plugin header */ -- cgit v1.2.3