aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerControl.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-21 08:55:52 +0100
committerMax Kellermann <max@duempel.org>2014-02-21 10:22:35 +0100
commit30a82076ba50a21c4df5fe4c46c8fc2ed25a7486 (patch)
tree6d7f28eb99c4e708d7b7609a203f78d565475c89 /src/PlayerControl.hxx
parent860339c132f76ae6710b2d96851b3f55a273c1da (diff)
downloadmpd-30a82076ba50a21c4df5fe4c46c8fc2ed25a7486.tar.gz
mpd-30a82076ba50a21c4df5fe4c46c8fc2ed25a7486.tar.xz
mpd-30a82076ba50a21c4df5fe4c46c8fc2ed25a7486.zip
PlayerListener: new interface to replace GlobalEvents access
Diffstat (limited to '')
-rw-r--r--src/PlayerControl.hxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/PlayerControl.hxx b/src/PlayerControl.hxx
index 4eeccdb6c..b60227d23 100644
--- a/src/PlayerControl.hxx
+++ b/src/PlayerControl.hxx
@@ -29,6 +29,7 @@
#include <stdint.h>
+class PlayerListener;
class MultipleOutputs;
class DetachedSong;
@@ -92,6 +93,8 @@ struct player_status {
};
struct PlayerControl {
+ PlayerListener &listener;
+
MultipleOutputs &outputs;
unsigned buffer_chunks;
@@ -137,8 +140,8 @@ struct PlayerControl {
* A copy of the current #DetachedSong after its tags have
* been updated by the decoder (for example, a radio stream
* that has sent a new tag after switching to the next song).
- * This shall be used by the GlobalEvents::TAG handler to
- * update the current #DetachedSong in the queue.
+ * This shall be used by PlayerListener::OnPlayerTagModified()
+ * to update the current #DetachedSong in the queue.
*
* Protected by #mutex. Set by the PlayerThread and consumed
* by the main thread.
@@ -173,7 +176,8 @@ struct PlayerControl {
*/
bool border_pause;
- PlayerControl(MultipleOutputs &_outputs,
+ PlayerControl(PlayerListener &_listener,
+ MultipleOutputs &_outputs,
unsigned buffer_chunks,
unsigned buffered_before_play);
~PlayerControl();