diff options
author | Romain Bignon <romain@peerfuse.org> | 2009-03-27 14:42:55 +0100 |
---|---|---|
committer | Romain Bignon <romain@peerfuse.org> | 2009-03-27 14:58:31 +0100 |
commit | e46722b2ebe05fce63bc7b86100c159b5cadd297 (patch) | |
tree | c61515a84ad0f425233a7ebe7ee3731ab63df92a /src/playlist.h | |
parent | 929c200c380996d6dfcbdd468a74aaef48298af6 (diff) | |
download | mpd-e46722b2ebe05fce63bc7b86100c159b5cadd297.tar.gz mpd-e46722b2ebe05fce63bc7b86100c159b5cadd297.tar.xz mpd-e46722b2ebe05fce63bc7b86100c159b5cadd297.zip |
implements the smartstop feature
The smartstop feature is a way to tell mpd to stop playing after
current song.
This patche provides:
- 'state' command returns 'smartstop' state (1 or 0)
- 'smartstop' can activate or not the smartstop state
- when song is terminated, mpd stops playing and smartstop is set to 0
Diffstat (limited to 'src/playlist.h')
-rw-r--r-- | src/playlist.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/playlist.h b/src/playlist.h index 41befe455..4e11ec421 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -179,6 +179,11 @@ getPlaylistRandomStatus(const struct playlist *playlist); void setPlaylistRandomStatus(struct playlist *playlist, bool status); +bool +getPlaylistSmartstopStatus(const struct playlist *playlist); + +void setPlaylistSmartstopStatus(struct playlist *playlist, bool status); + int getPlaylistCurrentSong(const struct playlist *playlist); int getPlaylistNextSong(const struct playlist *playlist); |