diff options
Diffstat (limited to '')
-rw-r--r-- | src/dbUtils.c | 11 |
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); |