aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 10:49:11 +0200
committerMax Kellermann <max@duempel.org>2008-10-08 10:49:11 +0200
commitd562ba5fbbe117585eaade40a8e9c6ef1bf7ca1f (patch)
tree1e82f7b4854c5d15c4ab59c48120da02e4b41be9 /src/player_control.c
parent25f67da58c671885c86ecfd991f28ec82b6ce1e2 (diff)
downloadmpd-d562ba5fbbe117585eaade40a8e9c6ef1bf7ca1f.tar.gz
mpd-d562ba5fbbe117585eaade40a8e9c6ef1bf7ca1f.tar.xz
mpd-d562ba5fbbe117585eaade40a8e9c6ef1bf7ca1f.zip
song: converted typedef Song to struct song
Again, a data type which can be forward-declared.
Diffstat (limited to 'src/player_control.c')
-rw-r--r--src/player_control.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/player_control.c b/src/player_control.c
index 5bc08b776..b274c29e0 100644
--- a/src/player_control.c
+++ b/src/player_control.c
@@ -20,6 +20,7 @@
#include "path.h"
#include "log.h"
#include "tag.h"
+#include "song.h"
#include "os_compat.h"
#include "main_notify.h"
@@ -43,7 +44,8 @@ void pc_deinit(void)
notify_deinit(&pc.notify);
}
-static void set_current_song(Song *song)
+static void
+set_current_song(struct song *song)
{
assert(song != NULL);
assert(song->url != NULL);
@@ -61,7 +63,8 @@ static void player_command(enum player_command cmd)
}
}
-void playerPlay(Song * song)
+void
+playerPlay(struct song *song)
{
assert(pc.queueLockState == PLAYER_QUEUE_UNLOCKED);
@@ -174,7 +177,8 @@ char *getPlayerErrorStr(void)
return *error ? error : NULL;
}
-void queueSong(Song * song)
+void
+queueSong(struct song *song)
{
assert(pc.queueState == PLAYER_QUEUE_BLANK);
@@ -208,7 +212,8 @@ void playerQueueUnlock(void)
assert(pc.queueLockState == PLAYER_QUEUE_UNLOCKED);
}
-int playerSeek(Song * song, float seek_time)
+int
+playerSeek(struct song *song, float seek_time)
{
assert(song != NULL);
@@ -265,7 +270,8 @@ int getPlayerChannels(void)
}
/* this actually creates a dupe of the current metadata */
-Song *playerCurrentDecodeSong(void)
+struct song *
+playerCurrentDecodeSong(void)
{
return NULL;
}