From e46722b2ebe05fce63bc7b86100c159b5cadd297 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 27 Mar 2009 14:42:55 +0100 Subject: 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 --- src/playlist.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/playlist.h') 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); -- cgit v1.2.3