diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2005-02-03 04:08:35 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2005-02-03 04:08:35 +0000 |
commit | ac6a74927e902f373077ade5037c0db5c050e961 (patch) | |
tree | 5edca7ad1f19cb6416738f2df2ccdd8d1a644063 /src/inputPlugins | |
parent | 004c9394f7b278e731e48ea2ab6fb3d6555bf85f (diff) | |
download | mpd-ac6a74927e902f373077ade5037c0db5c050e961.tar.gz mpd-ac6a74927e902f373077ade5037c0db5c050e961.tar.xz mpd-ac6a74927e902f373077ade5037c0db5c050e961.zip |
make local functions static
git-svn-id: https://svn.musicpd.org/mpd/trunk@2932 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins')
-rw-r--r-- | src/inputPlugins/mpc_plugin.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/inputPlugins/mpc_plugin.c b/src/inputPlugins/mpc_plugin.c index b0cf24ab3..4d07b2f86 100644 --- a/src/inputPlugins/mpc_plugin.c +++ b/src/inputPlugins/mpc_plugin.c @@ -40,7 +40,7 @@ typedef struct _MpcCallbackData { DecoderControl * dc; } MpcCallbackData; -mpc_int32_t mpc_read_cb(void * vdata, void * ptr, mpc_int32_t size) { +static mpc_int32_t mpc_read_cb(void * vdata, void * ptr, mpc_int32_t size) { mpc_int32_t ret = 0; MpcCallbackData * data = (MpcCallbackData *)vdata; @@ -63,19 +63,19 @@ static mpc_bool_t mpc_seek_cb(void * vdata, mpc_int32_t offset) { return seekInputStream(data->inStream , offset, SEEK_SET) < 0 ? 0 : 1; } -mpc_int32_t mpc_tell_cb(void * vdata) { +static mpc_int32_t mpc_tell_cb(void * vdata) { MpcCallbackData * data = (MpcCallbackData *)vdata; return (long)(data->inStream->offset); } -mpc_bool_t mpc_canseek_cb(void * vdata) { +static mpc_bool_t mpc_canseek_cb(void * vdata) { MpcCallbackData * data = (MpcCallbackData *)vdata; return data->inStream->seekable; } -mpc_int32_t mpc_getsize_cb(void * vdata) { +static mpc_int32_t mpc_getsize_cb(void * vdata) { MpcCallbackData * data = (MpcCallbackData *)vdata; return data->inStream->size; @@ -110,7 +110,8 @@ inline mpd_sint16 convertSample(MPC_SAMPLE_FORMAT sample) { return val; } -int mpc_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream) +static int mpc_decode(OutputBuffer * cb, DecoderControl * dc, + InputStream * inStream) { mpc_decoder decoder; mpc_reader reader; @@ -271,7 +272,7 @@ int mpc_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream) return 0; } -MpdTag * mpcTagDup(char * file) { +static MpdTag * mpcTagDup(char * file) { MpdTag * ret = NULL; FILE * fp; |