diff options
author | Max Kellermann <max@duempel.org> | 2013-10-28 10:12:21 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-28 10:12:33 +0100 |
commit | 5b5675cc121eff6ba4b89719a523bfbe3993ce2f (patch) | |
tree | 92bd72d3f460d184d5769256270c76db0fb6080b /src/Playlist.cxx | |
parent | e699f6781e144d02336856d460a74fbaf988447d (diff) | |
download | mpd-5b5675cc121eff6ba4b89719a523bfbe3993ce2f.tar.gz mpd-5b5675cc121eff6ba4b89719a523bfbe3993ce2f.tar.xz mpd-5b5675cc121eff6ba4b89719a523bfbe3993ce2f.zip |
player_control: rename to PlayerControl
Diffstat (limited to 'src/Playlist.cxx')
-rw-r--r-- | src/Playlist.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Playlist.cxx b/src/Playlist.cxx index 134abf7ff..8d9ab24a3 100644 --- a/src/Playlist.cxx +++ b/src/Playlist.cxx @@ -49,7 +49,7 @@ playlist::TagModified(Song &&song) * Queue a song, addressed by its order number. */ static void -playlist_queue_song_order(playlist &playlist, player_control &pc, +playlist_queue_song_order(playlist &playlist, PlayerControl &pc, unsigned order) { assert(playlist.queue.IsValidOrder(order)); @@ -71,7 +71,7 @@ playlist_queue_song_order(playlist &playlist, player_control &pc, * Called if the player thread has started playing the "queued" song. */ static void -playlist_song_started(playlist &playlist, player_control &pc) +playlist_song_started(playlist &playlist, PlayerControl &pc) { assert(pc.next_song == nullptr); assert(playlist.queued >= -1); @@ -98,7 +98,7 @@ playlist::GetQueuedSong() const } void -playlist::UpdateQueuedSong(player_control &pc, const Song *prev) +playlist::UpdateQueuedSong(PlayerControl &pc, const Song *prev) { if (!playing) return; @@ -144,7 +144,7 @@ playlist::UpdateQueuedSong(player_control &pc, const Song *prev) } void -playlist::PlayOrder(player_control &pc, int order) +playlist::PlayOrder(PlayerControl &pc, int order) { playing = true; queued = -1; @@ -162,10 +162,10 @@ playlist::PlayOrder(player_control &pc, int order) } static void -playlist_resume_playback(playlist &playlist, player_control &pc); +playlist_resume_playback(playlist &playlist, PlayerControl &pc); void -playlist::SyncWithPlayer(player_control &pc) +playlist::SyncWithPlayer(PlayerControl &pc) { if (!playing) /* this event has reached us out of sync: we aren't @@ -205,7 +205,7 @@ playlist::SyncWithPlayer(player_control &pc) * decide whether to re-start playback */ static void -playlist_resume_playback(playlist &playlist, player_control &pc) +playlist_resume_playback(playlist &playlist, PlayerControl &pc) { assert(playlist.playing); assert(pc.GetState() == PlayerState::STOP); @@ -228,7 +228,7 @@ playlist_resume_playback(playlist &playlist, player_control &pc) } void -playlist::SetRepeat(player_control &pc, bool status) +playlist::SetRepeat(PlayerControl &pc, bool status) { if (status == queue.repeat) return; @@ -255,7 +255,7 @@ playlist_order(playlist &playlist) } void -playlist::SetSingle(player_control &pc, bool status) +playlist::SetSingle(PlayerControl &pc, bool status) { if (status == queue.single) return; @@ -282,7 +282,7 @@ playlist::SetConsume(bool status) } void -playlist::SetRandom(player_control &pc, bool status) +playlist::SetRandom(PlayerControl &pc, bool status) { if (status == queue.random) return; |