aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-23 00:09:26 +0100
committerMax Kellermann <max@duempel.org>2009-01-23 00:09:26 +0100
commit00541f8ce9304039eb6a54539669aa55d1042339 (patch)
tree20f52162ae4b763c13559fa553c6440c9e103121 /src/playlist.h
parent3a1de741bbb8cf412a72d53793d205a139c101ac (diff)
downloadmpd-00541f8ce9304039eb6a54539669aa55d1042339.tar.gz
mpd-00541f8ce9304039eb6a54539669aa55d1042339.tar.xz
mpd-00541f8ce9304039eb6a54539669aa55d1042339.zip
playlist: replaced playlist_state with flag playlist.playing
There were only two possible states: STOP and PLAY. The code looks a lot easier if we use a bool instead. Move the variable into the playlist struct.
Diffstat (limited to 'src/playlist.h')
-rw-r--r--src/playlist.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/playlist.h b/src/playlist.h
index 330eba6ea..5e0b84c5e 100644
--- a/src/playlist.h
+++ b/src/playlist.h
@@ -50,6 +50,12 @@ typedef struct _Playlist {
struct queue queue;
/**
+ * This value is true if the player is currently playing (or
+ * should be playing).
+ */
+ bool playing;
+
+ /**
* The "current song pointer". This is the song which is
* played when we get the "play" command. It is also the song
* which is currently being played.