summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-08 10:34:05 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-08 10:34:05 +0000
commit897fd9282781d2f90dc4193cca908f1b17e00cb0 (patch)
treed3ca20fa59225ca6f98135b916c8ddc56637e7c7
parent75e3fb7edbe686b3aff8abe471fc80bcde6a3d55 (diff)
codeclib: Declare several variables static and remove unused variables.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29831 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/lib/codeclib.c10
-rw-r--r--apps/codecs/lib/codeclib.h5
2 files changed, 5 insertions, 10 deletions
diff --git a/apps/codecs/lib/codeclib.c b/apps/codecs/lib/codeclib.c
index 3a46f6d06b..e672a78cc2 100644
--- a/apps/codecs/lib/codeclib.c
+++ b/apps/codecs/lib/codeclib.c
@@ -27,11 +27,11 @@
#include "codeclib.h"
#include "metadata.h"
-size_t mem_ptr;
-size_t bufsize;
-unsigned char* mp3buf; // The actual MP3 buffer from Rockbox
-unsigned char* mallocbuf; // 512K from the start of MP3 buffer
-unsigned char* filebuf; // The rest of the MP3 buffer
+/* The following variables are used by codec_malloc() to make use of free RAM
+ * within the statically allocated codec buffer. */
+static size_t mem_ptr;
+static size_t bufsize;
+static unsigned char* mallocbuf;
int codec_init(void)
{
diff --git a/apps/codecs/lib/codeclib.h b/apps/codecs/lib/codeclib.h
index 30091c5333..d0f985b8e1 100644
--- a/apps/codecs/lib/codeclib.h
+++ b/apps/codecs/lib/codeclib.h
@@ -30,11 +30,6 @@
#include "fft.h"
extern struct codec_api *ci;
-extern size_t mem_ptr;
-extern size_t bufsize;
-extern unsigned char* mp3buf; /* The actual MP3 buffer from Rockbox */
-extern unsigned char* mallocbuf; /* The free space after the codec in the codec buffer */
-extern unsigned char* filebuf; /* The rest of the MP3 buffer */
/* Standard library functions that are used by the codecs follow here */