diff options
author | Max Kellermann <max@duempel.org> | 2008-10-08 10:49:11 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-08 10:49:11 +0200 |
commit | d562ba5fbbe117585eaade40a8e9c6ef1bf7ca1f (patch) | |
tree | 1e82f7b4854c5d15c4ab59c48120da02e4b41be9 /src/player_control.h | |
parent | 25f67da58c671885c86ecfd991f28ec82b6ce1e2 (diff) | |
download | mpd-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.h')
-rw-r--r-- | src/player_control.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/player_control.h b/src/player_control.h index 375b2f3c1..fd2a5ca45 100644 --- a/src/player_control.h +++ b/src/player_control.h @@ -20,7 +20,6 @@ #define PLAYER_H #include "notify.h" -#include "song.h" #include "os_compat.h" enum player_state { @@ -92,8 +91,8 @@ struct player_control { volatile float totalTime; volatile float elapsedTime; volatile float fileTime; - Song *volatile next_song; - Song *errored_song; + struct song *volatile next_song; + struct song *errored_song; volatile enum player_queue_state queueState; volatile int8_t queueLockState; volatile double seekWhere; @@ -108,7 +107,8 @@ void pc_init(unsigned int buffered_before_play); void pc_deinit(void); -void playerPlay(Song * song); +void +playerPlay(struct song *song); void playerSetPause(int pause_flag); @@ -132,7 +132,8 @@ int getPlayerError(void); void playerWait(void); -void queueSong(Song * song); +void +queueSong(struct song *song); enum player_queue_state getPlayerQueueState(void); @@ -142,7 +143,8 @@ void playerQueueLock(void); void playerQueueUnlock(void); -int playerSeek(Song * song, float seek_time); +int +playerSeek(struct song *song, float seek_time); void setPlayerCrossFade(float crossFadeInSeconds); @@ -158,7 +160,8 @@ int getPlayerBits(void); int getPlayerChannels(void); -Song *playerCurrentDecodeSong(void); +struct song * +playerCurrentDecodeSong(void); void playerInit(void); |