implemented songid commands: playlistid, playid, seekid, deleteid, moveid, swapid

git-svn-id: https://svn.musicpd.org/mpd/trunk@1408 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes
2004-06-09 02:50:44 +00:00
parent 304639c9a6
commit d217505dc6
4 changed files with 155 additions and 8 deletions

View File

@@ -1081,12 +1081,10 @@ int moveSongInPlaylist(FILE * fp, int from, int to) {
return 0;
}
int moveSongInPlaylistById(FILE * fp, int id1, int id2) {
int moveSongInPlaylistById(FILE * fp, int id1, int to) {
checkSongId(id1);
checkSongId(id2);
return moveSongInPlaylist(fp, playlist.idToNum[id1],
playlist.idToNum[id2]);
return moveSongInPlaylist(fp, playlist.idToNum[id1], to);
}
void orderPlaylist() {
@@ -1461,3 +1459,7 @@ int seekSongInPlaylistById(FILE * fp, int id, float time) {
return seekSongInPlaylist(fp, playlist.idToNum[id], time);
}
int getPlaylistSongId(int song) {
return playlist.numToId[song];
}