summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJeffrey Goode <jeffg7@gmail.com>2009-08-18 03:45:18 +0000
committerJeffrey Goode <jeffg7@gmail.com>2009-08-18 03:45:18 +0000
commit3ebb836b52d1e5b3aed1aa74afac9a11b76ff8d5 (patch)
treefaf48496007acc0ba91ffd04513294d713ba8367 /apps
parent2b7ef6b92880249e64639768012266e65f5d14cc (diff)
downloadrockbox-3ebb836b52d1e5b3aed1aa74afac9a11b76ff8d5.zip
rockbox-3ebb836b52d1e5b3aed1aa74afac9a11b76ff8d5.tar.gz
rockbox-3ebb836b52d1e5b3aed1aa74afac9a11b76ff8d5.tar.bz2
rockbox-3ebb836b52d1e5b3aed1aa74afac9a11b76ff8d5.tar.xz
Fix red: plugins on hwcodec targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22395 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 674740c..8c1ecb8 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 d47cf03..b873cbf 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 */