From 9b32a1988f848145d96ba2be8cba86e837196df3 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Wed, 16 Feb 2005 18:51:21 +0000 Subject: Move contents of plugins/xxx2wav.h into the plugin library git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5982 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/a52towav.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/plugins/a52towav.c') diff --git a/apps/plugins/a52towav.c b/apps/plugins/a52towav.c index 3e81c9db0c..f62106a8c3 100644 --- a/apps/plugins/a52towav.c +++ b/apps/plugins/a52towav.c @@ -27,11 +27,9 @@ #include #include -static struct plugin_api* rb; - -/* Helper functions common to all decoder test viewers (uses rb) */ +#include "lib/xxx2wav.h" /* Helper functions common to test decoders */ -#include "xxx2wav.h" +static struct plugin_api* rb; /* FIX: We can remove this warning when the build system has a mechanism for auto-detecting the endianness of the target CPU - @@ -167,6 +165,8 @@ void a52_decode_data (file_info_struct* file_info, uint8_t * start, uint8_t * en /* this is the plugin entry point */ enum plugin_status plugin_start(struct plugin_api* api, void* file) { + file_info_struct file_info; + /* Generic plugin initialisation */ TEST_PLUGIN_API(api); @@ -175,7 +175,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) /* This function sets up the buffers and reads the file into RAM */ - if (local_init(file,"/ac3test.wav",&file_info)) { + if (local_init(file,"/ac3test.wav",&file_info,api)) { return PLUGIN_ERROR; } -- cgit v1.2.3