new command "addid", this is the same as "add" command, except it also returns the songid of the added song. Note that "addid" does not work on directories

git-svn-id: https://svn.musicpd.org/mpd/trunk@2487 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes
2004-11-02 23:44:33 +00:00
parent 78c5d884d2
commit f468aba16e
4 changed files with 24 additions and 10 deletions
+1 -1
View File
@@ -1289,7 +1289,7 @@ int printAllIn(FILE * fp, char * name) {
}
int directoryAddSongToPlaylist(FILE * fp, Song * song, void * data) {
return addSongToPlaylist(fp,song);
return addSongToPlaylist(fp, song, 0);
}
int addAllIn(FILE * fp, char * name) {