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:
@@ -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];
|
||||
}
|
||||
|
Reference in New Issue
Block a user