Committing pat's rewrite of the stored playlist code. This also adds two
new commands: playlistmove and playlistdelete. git-svn-id: https://svn.musicpd.org/mpd/trunk@6116 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "tag.h"
|
||||
#include "tagTracker.h"
|
||||
#include "log.h"
|
||||
#include "storedPlaylist.h"
|
||||
|
||||
typedef struct _ListCommandItem {
|
||||
mpd_sint8 tagType;
|
||||
@@ -177,7 +178,9 @@ static int directoryAddSongToPlaylist(int fd, Song * song, void *data)
|
||||
|
||||
static int directoryAddSongToStoredPlaylist(int fd, Song *song, void *data)
|
||||
{
|
||||
return addSongToStoredPlaylist(fd, song, (char *)data);
|
||||
if (appendSongToStoredPlaylistByPath(fd, (char *)data, song) != 0)
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int addAllIn(int fd, char *name)
|
||||
|
||||
Reference in New Issue
Block a user