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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user