aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2006-11-20 15:37:58 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2006-11-20 15:37:58 +0000
commit08003904d7af58c0402b49805b9f87b3d9ebbc27 (patch)
tree4011968f22cf2a24d2841f55b90b52df782f32d1 /src/dbUtils.c
parent6d6155d766747ccd27ade7f0be66bff645b7a11f (diff)
downloadmpd-08003904d7af58c0402b49805b9f87b3d9ebbc27.tar.gz
mpd-08003904d7af58c0402b49805b9f87b3d9ebbc27.tar.xz
mpd-08003904d7af58c0402b49805b9f87b3d9ebbc27.zip
Adding functions for clearing/adding to stored playlists. Commands to make
use of these functions are still being worked on. git-svn-id: https://svn.musicpd.org/mpd/trunk@5075 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/dbUtils.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c
index d8b4c0018..b713b2a8b 100644
--- a/src/dbUtils.c
+++ b/src/dbUtils.c
@@ -304,11 +304,22 @@ static int directoryAddSongToPlaylist(int fd, Song * song, void *data)
return addSongToPlaylist(fd, song, 0);
}
+static int directoryAddSongToStoredPlaylist(int fd, Song *song, void *data)
+{
+ return addSongToStoredPlaylist(fd, song, (char *)data);
+}
+
int addAllIn(int fd, char *name)
{
return traverseAllIn(fd, name, directoryAddSongToPlaylist, NULL, NULL);
}
+int addAllInToStoredPlaylist(int fd, char *name, char *utf8file)
+{
+ return traverseAllIn(fd, name, directoryAddSongToStoredPlaylist, NULL,
+ (void *)utf8file);
+}
+
static int directoryPrintSongInfo(int fd, Song * song, void *data)
{
return printSongInfo(fd, song);