aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-08-08 02:23:21 +0000
committerEric Wong <normalperson@yhbt.net>2006-08-08 02:23:21 +0000
commitf7d150a360be0730a0eeaf6ff5e787508e8ede0d (patch)
treefc8852dac991da5673dc6c05e015b4f6042aa645 /src/player.c
parent6395edab6997cf09b9cb4bb296be66cd49866547 (diff)
downloadmpd-f7d150a360be0730a0eeaf6ff5e787508e8ede0d.tar.gz
mpd-f7d150a360be0730a0eeaf6ff5e787508e8ede0d.tar.xz
mpd-f7d150a360be0730a0eeaf6ff5e787508e8ede0d.zip
more sparse cleanups
* less-commonly compiled things like ao/mvp outputs * Adding -Wno-transparent-union to SPARSE_FLAGS makes it check inside decode.c, directory.c, player.c, and sig_handlers.c * remove unused variables leftover from the master process in sig_handlers.c git-svn-id: https://svn.musicpd.org/mpd/trunk@4598 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/player.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/player.c b/src/player.c
index 17ec780ed..faa05a32a 100644
--- a/src/player.c
+++ b/src/player.c
@@ -46,12 +46,12 @@
volatile int player_pid = 0;
-void clearPlayerPid()
+void clearPlayerPid(void)
{
player_pid = 0;
}
-static void resetPlayerMetadata()
+static void resetPlayerMetadata(void)
{
PlayerControl *pc = &(getPlayerData()->playerControl);
@@ -60,7 +60,7 @@ static void resetPlayerMetadata()
}
}
-void resetPlayer()
+void resetPlayer(void)
{
int pid;
@@ -108,7 +108,7 @@ void player_sigChldHandler(int pid, int status)
}
}
-int playerInit()
+int playerInit(void)
{
blockSignals();
player_pid = fork();
@@ -217,7 +217,7 @@ int playerStop(int fd)
return 0;
}
-void playerKill()
+void playerKill(void)
{
int pid;
/*PlayerControl * pc = &(getPlayerData()->playerControl);
@@ -265,37 +265,37 @@ int playerSetPause(int fd, int pause)
return 0;
}
-int getPlayerElapsedTime()
+int getPlayerElapsedTime(void)
{
return (int)(getPlayerData()->playerControl.elapsedTime + 0.5);
}
-unsigned long getPlayerBitRate()
+unsigned long getPlayerBitRate(void)
{
return getPlayerData()->playerControl.bitRate;
}
-int getPlayerTotalTime()
+int getPlayerTotalTime(void)
{
return (int)(getPlayerData()->playerControl.totalTime + 0.5);
}
-int getPlayerState()
+int getPlayerState(void)
{
return getPlayerData()->playerControl.state;
}
-void clearPlayerError()
+void clearPlayerError(void)
{
getPlayerData()->playerControl.error = 0;
}
-int getPlayerError()
+int getPlayerError(void)
{
return getPlayerData()->playerControl.error;
}
-char *getPlayerErrorStr()
+char *getPlayerErrorStr(void)
{
static char *error = NULL;
int errorlen = MAXPATHLEN + 1024;
@@ -336,7 +336,7 @@ char *getPlayerErrorStr()
return NULL;
}
-void playerCloseAudio()
+void playerCloseAudio(void)
{
PlayerControl *pc = &(getPlayerData()->playerControl);
@@ -368,7 +368,7 @@ int queueSong(Song * song)
return -1;
}
-int getPlayerQueueState()
+int getPlayerQueueState(void)
{
PlayerControl *pc = &(getPlayerData()->playerControl);
@@ -382,7 +382,7 @@ void setQueueState(int queueState)
pc->queueState = queueState;
}
-void playerQueueLock()
+void playerQueueLock(void)
{
PlayerControl *pc = &(getPlayerData()->playerControl);
@@ -393,7 +393,7 @@ void playerQueueLock()
}
}
-void playerQueueUnlock()
+void playerQueueUnlock(void)
{
PlayerControl *pc = &(getPlayerData()->playerControl);
@@ -436,7 +436,7 @@ int playerSeek(int fd, Song * song, float time)
return 0;
}
-float getPlayerCrossFade()
+float getPlayerCrossFade(void)
{
PlayerControl *pc = &(getPlayerData()->playerControl);
@@ -464,35 +464,35 @@ void setPlayerSoftwareVolume(int volume)
pc->softwareVolume = volume;
}
-double getPlayerTotalPlayTime()
+double getPlayerTotalPlayTime(void)
{
PlayerControl *pc = &(getPlayerData()->playerControl);
return pc->totalPlayTime;
}
-unsigned int getPlayerSampleRate()
+unsigned int getPlayerSampleRate(void)
{
PlayerControl *pc = &(getPlayerData()->playerControl);
return pc->sampleRate;
}
-int getPlayerBits()
+int getPlayerBits(void)
{
PlayerControl *pc = &(getPlayerData()->playerControl);
return pc->bits;
}
-int getPlayerChannels()
+int getPlayerChannels(void)
{
PlayerControl *pc = &(getPlayerData()->playerControl);
return pc->channels;
}
-void playerCycleLogFiles()
+void playerCycleLogFiles(void)
{
PlayerControl *pc = &(getPlayerData()->playerControl);
DecoderControl *dc = &(getPlayerData()->decoderControl);
@@ -502,7 +502,7 @@ void playerCycleLogFiles()
}
/* this actually creates a dupe of the current metadata */
-Song *playerCurrentDecodeSong()
+Song *playerCurrentDecodeSong(void)
{
static Song *song = NULL;
static MetadataChunk *prev = NULL;