From cb9d1b3d275fac683a4128b93a76ab72c99a0209 Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Wed, 26 Sep 2007 08:25:35 +0000 Subject: Playlist queue patch (http://musicpd.org/mantis/view.php?id=1478) version 11. This adds the following commands: * queueid Add song to the queue. * dequeue Remove song from from the queue * queueinfo List the queue To the statusfield it adds the following entry: playlistqueue: UID can be used by clients to track changes in the playlist queue. git-svn-id: https://svn.musicpd.org/mpd/trunk@6927 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playlist.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/playlist.h') diff --git a/src/playlist.h b/src/playlist.h index 0ae3a677f..6576ff27b 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -43,6 +43,7 @@ typedef struct _Playlist { int repeat; int random; mpd_uint32 version; + mpd_uint32 queueversion; } Playlist; extern int playlist_saveAbsolutePaths; @@ -79,6 +80,8 @@ int stopPlaylist(int fd); int playPlaylist(int fd, int song, int stopOnError); +int playNextPlaylistQueue(int fd, int stopOnError); + int playPlaylistById(int fd, int song, int stopOnError); int nextSongInPlaylist(int fd); @@ -123,6 +126,8 @@ int getPlaylistLength(void); unsigned long getPlaylistVersion(void); +unsigned long getPlaylistQueueVersion(void); + void playPlaylistIfPlayerStopped(void); int seekSongInPlaylist(int fd, int song, float time); @@ -141,4 +146,14 @@ void searchForSongsInPlaylist(int fd, int numItems, LocateTagItem * items); void findSongsInPlaylist(int fd, int numItems, LocateTagItem * items); +void clearPlaylistQueue(void); + +int addToPlaylistQueueById(int fd, int song, int toPosition); + +int deleteFromPlaylistQueue(int fd, int song); + +int deleteFromPlaylistQueueInternal(int song); + +int playlistQueueInfo(int fd); + #endif -- cgit v1.2.3