playlist: don't pass "fd" to playlist.c functions
The playlist library shouldn't talk to the client if possible. Introduce the "enum playlist_result" type which the caller (i.e. command.c) may use to generate an error message.
This commit is contained in:
@@ -174,10 +174,10 @@ int printAllIn(int fd, const char *name)
|
||||
printDirectoryInDirectory, NULL);
|
||||
}
|
||||
|
||||
static int directoryAddSongToPlaylist(int fd, Song * song,
|
||||
static int directoryAddSongToPlaylist(mpd_unused int fd, Song * song,
|
||||
mpd_unused void *data)
|
||||
{
|
||||
return addSongToPlaylist(fd, song, NULL);
|
||||
return addSongToPlaylist(song, NULL);
|
||||
}
|
||||
|
||||
static int directoryAddSongToStoredPlaylist(int fd, Song *song, void *data)
|
||||
|
||||
Reference in New Issue
Block a user