make local functions static

git-svn-id: https://svn.musicpd.org/mpd/trunk@2932 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2005-02-03 04:08:35 +00:00
parent 004c9394f7
commit ac6a74927e
1 changed files with 7 additions and 6 deletions

View File

@ -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;