aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/oggvorbis_plugin.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-07-17 01:47:32 +0000
committerEric Wong <normalperson@yhbt.net>2006-07-17 01:47:32 +0000
commit6f013cd9c4575c0be5b888c55de43186a6b6d698 (patch)
treef206035284494e61078b27b19041eb70ebda635e /src/inputPlugins/oggvorbis_plugin.c
parent5f508702229febe6c042de2d4fe6d23b855cd410 (diff)
downloadmpd-6f013cd9c4575c0be5b888c55de43186a6b6d698.tar.gz
mpd-6f013cd9c4575c0be5b888c55de43186a6b6d698.tar.xz
mpd-6f013cd9c4575c0be5b888c55de43186a6b6d698.zip
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
Diffstat (limited to 'src/inputPlugins/oggvorbis_plugin.c')
-rw-r--r--src/inputPlugins/oggvorbis_plugin.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/inputPlugins/oggvorbis_plugin.c b/src/inputPlugins/oggvorbis_plugin.c
index 3c699cef2..f3a321593 100644
--- a/src/inputPlugins/oggvorbis_plugin.c
+++ b/src/inputPlugins/oggvorbis_plugin.c
@@ -65,7 +65,7 @@ typedef struct _OggCallbackData {
DecoderControl * dc;
} OggCallbackData;
-size_t ogg_read_cb(void * ptr, size_t size, size_t nmemb, void * vdata)
+static size_t ogg_read_cb(void * ptr, size_t size, size_t nmemb, void * vdata)
{
size_t ret = 0;
OggCallbackData * data = (OggCallbackData *)vdata;
@@ -85,19 +85,19 @@ size_t ogg_read_cb(void * ptr, size_t size, size_t nmemb, void * vdata)
return ret;
}
-int ogg_seek_cb(void * vdata, ogg_int64_t offset, int whence) {
+static int ogg_seek_cb(void * vdata, ogg_int64_t offset, int whence) {
OggCallbackData * data = (OggCallbackData *)vdata;
return seekInputStream(data->inStream,offset,whence);
}
-int ogg_close_cb(void * vdata) {
+static int ogg_close_cb(void * vdata) {
OggCallbackData * data = (OggCallbackData *)vdata;
return closeInputStream(data->inStream);
}
-long ogg_tell_cb(void * vdata) {
+static long ogg_tell_cb(void * vdata) {
OggCallbackData * data = (OggCallbackData *)vdata;
return (long)(data->inStream->offset);
@@ -113,7 +113,7 @@ static char * ogg_parseComment(char * comment, char * needle) {
return NULL;
}
-void ogg_getReplayGainInfo(char ** comments, ReplayGainInfo ** infoPtr) {
+static void ogg_getReplayGainInfo(char ** comments, ReplayGainInfo ** infoPtr) {
char * temp;
int found = 0;
@@ -157,7 +157,7 @@ void ogg_getReplayGainInfo(char ** comments, ReplayGainInfo ** infoPtr) {
static const char * VORBIS_COMMENT_TRACK_KEY = "tracknumber";
static const char * VORBIS_COMMENT_DISC_KEY = "discnumber";
-static inline unsigned int ogg_parseCommentAddToTag(char * comment,
+static unsigned int ogg_parseCommentAddToTag(char * comment,
unsigned int itemType, MpdTag ** tag)
{
const char * needle;
@@ -196,7 +196,7 @@ static MpdTag * oggCommentsParse(char ** comments) {
return tag;
}
-void putOggCommentsIntoOutputBuffer(OutputBuffer * cb, char * streamName,
+static void putOggCommentsIntoOutputBuffer(OutputBuffer * cb, char * streamName,
char ** comments)
{
MpdTag * tag;
@@ -223,7 +223,7 @@ void putOggCommentsIntoOutputBuffer(OutputBuffer * cb, char * streamName,
}
/* public */
-int oggvorbis_decode(OutputBuffer * cb, DecoderControl * dc,
+static int oggvorbis_decode(OutputBuffer * cb, DecoderControl * dc,
InputStream * inStream)
{
OggVorbis_File vf;
@@ -364,7 +364,7 @@ int oggvorbis_decode(OutputBuffer * cb, DecoderControl * dc,
return 0;
}
-MpdTag * oggvorbis_TagDup(char * file) {
+static MpdTag * oggvorbis_TagDup(char * file) {
MpdTag * ret = NULL;
FILE * fp;
OggVorbis_File vf;