From 6f013cd9c4575c0be5b888c55de43186a6b6d698 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 17 Jul 2006 01:47:32 +0000 Subject: inputPlugins/*_plugin.c: static-fication Nothing here is ever exported for linkage besides the InputPlugin structure, so mark them static to save a few bytes. git-svn-id: https://svn.musicpd.org/mpd/trunk@4382 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputPlugins/mp4_plugin.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/inputPlugins/mp4_plugin.c') diff --git a/src/inputPlugins/mp4_plugin.c b/src/inputPlugins/mp4_plugin.c index ae51ef987..d04e0287c 100644 --- a/src/inputPlugins/mp4_plugin.c +++ b/src/inputPlugins/mp4_plugin.c @@ -38,7 +38,7 @@ /* all code here is either based on or copied from FAAD2's frontend code */ -int mp4_getAACTrack(mp4ff_t *infile) { +static int mp4_getAACTrack(mp4ff_t *infile) { /* find AAC track */ int i, rc; int numTracks = mp4ff_total_tracks(infile); @@ -74,18 +74,18 @@ int mp4_getAACTrack(mp4ff_t *infile) { return -1; } -uint32_t mp4_inputStreamReadCallback(void *inStream, void *buffer, +static uint32_t mp4_inputStreamReadCallback(void *inStream, void *buffer, uint32_t length) { return readFromInputStream((InputStream*) inStream, buffer, 1, length); } -uint32_t mp4_inputStreamSeekCallback(void *inStream, uint64_t position) { +static uint32_t mp4_inputStreamSeekCallback(void *inStream, uint64_t position) { return seekInputStream((InputStream *) inStream, position, SEEK_SET); } -int mp4_decode(OutputBuffer * cb, DecoderControl * dc, char * path) { +static int mp4_decode(OutputBuffer * cb, DecoderControl * dc, char * path) { mp4ff_t * mp4fh; mp4ff_callback_t * mp4cb; int32_t track; @@ -314,7 +314,7 @@ int mp4_decode(OutputBuffer * cb, DecoderControl * dc, char * path) { return 0; } -MpdTag * mp4DataDup(char * file, int * mp4MetadataFound) { +static MpdTag * mp4DataDup(char * file, int * mp4MetadataFound) { MpdTag * ret = NULL; InputStream inStream; mp4ff_t * mp4fh; @@ -409,7 +409,7 @@ MpdTag * mp4DataDup(char * file, int * mp4MetadataFound) { return ret; } -MpdTag * mp4TagDup(char * file) { +static MpdTag * mp4TagDup(char * file) { MpdTag * ret = NULL; int mp4MetadataFound = 0; @@ -427,7 +427,7 @@ MpdTag * mp4TagDup(char * file) { return ret; } -char * mp4Suffixes[] = {"m4a", "mp4", NULL}; +static char * mp4Suffixes[] = {"m4a", "mp4", NULL}; InputPlugin mp4Plugin = { -- cgit v1.2.3