aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-05-16 12:02:10 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-05-16 12:02:10 +0000
commit6cfe421cd64278f85310a258ab42c372c8a847b3 (patch)
treec1e8be35035dea1001ad8ad67c62ea13353aa09c /src/dbUtils.c
parent6f68587ad59a2e5f606a332b96e55f57a0f9a5fc (diff)
downloadmpd-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 'src/dbUtils.c')
-rw-r--r--src/dbUtils.c5
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)