aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-09 02:50:44 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-09 02:50:44 +0000
commitd217505dc63a1789ace5699699f056368fb3ecc3 (patch)
treee0dab49564fb91a93865be0402e71e2985c9cc8a /src/playlist.h
parent304639c9a6cebe8fa34e6bc2bbf64bc1ce3ec8d1 (diff)
downloadmpd-d217505dc63a1789ace5699699f056368fb3ecc3.tar.gz
mpd-d217505dc63a1789ace5699699f056368fb3ecc3.tar.xz
mpd-d217505dc63a1789ace5699699f056368fb3ecc3.zip
implemented songid commands: playlistid, playid, seekid, deleteid, moveid, swapid
git-svn-id: https://svn.musicpd.org/mpd/trunk@1408 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/playlist.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/playlist.h b/src/playlist.h
index 0281b6bfe..2b6befd74 100644
--- a/src/playlist.h
+++ b/src/playlist.h
@@ -50,12 +50,18 @@ int showPlaylist(FILE * fp);
int deleteFromPlaylist(FILE * fp, int song);
+int deleteFromPlaylistById(FILE * fp, int song);
+
int playlistInfo(FILE * fp, int song);
+int playlistId(FILE * fp, int song);
+
int stopPlaylist(FILE * fp);
int playPlaylist(FILE * fp, int song, int stopOnError);
+int playPlaylistById(FILE * fp, int song, int stopOnError);
+
int nextSongInPlaylist(FILE * fp);
void syncPlayerAndPlaylist();
@@ -68,12 +74,18 @@ int savePlaylist(FILE * fp, char * utf8file);
int deletePlaylist(FILE * fp, char * utf8file);
+int deletePlaylistById(FILE * fp, char * utf8file);
+
void deleteASongFromPlaylist(Song * song);
int moveSongInPlaylist(FILE * fp, int from, int to);
+int moveSongInPlaylistById(FILE * fp, int id, int to);
+
int swapSongsInPlaylist(FILE * fp, int song1, int song2);
+int swapSongsInPlaylistById(FILE * fp, int id1, int id2);
+
int loadPlaylist(FILE * fp, char * utf8file);
int getPlaylistRepeatStatus();
@@ -86,6 +98,8 @@ int setPlaylistRandomStatus(FILE * fp, int status);
int getPlaylistCurrentSong();
+int getPlaylistSongId(int song);
+
int getPlaylistLength();
unsigned long getPlaylistVersion();
@@ -94,6 +108,8 @@ void playPlaylistIfPlayerStopped();
int seekSongInPlaylist(FILE * fp, int song, float time);
+int seekSongInPlaylistById(FILE * fp, int id, float time);
+
void playlistVersionChange();
int playlistChanges(FILE * fp, mpd_uint32 version);