diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-05-16 12:02:10 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-05-16 12:02:10 +0000 |
commit | 6cfe421cd64278f85310a258ab42c372c8a847b3 (patch) | |
tree | c1e8be35035dea1001ad8ad67c62ea13353aa09c /src/dbUtils.c | |
parent | 6f68587ad59a2e5f606a332b96e55f57a0f9a5fc (diff) | |
download | mpd-6cfe421cd64278f85310a258ab42c372c8a847b3.tar.gz mpd-6cfe421cd64278f85310a258ab42c372c8a847b3.tar.xz mpd-6cfe421cd64278f85310a258ab42c372c8a847b3.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/dbUtils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c index 654867601..f83ae4c21 100644 --- a/src/dbUtils.c +++ b/src/dbUtils.c @@ -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) |