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:
Max Kellermann
2008-09-07 13:39:31 +02:00
parent 20feb0cbba
commit 8d2830b3f9
4 changed files with 246 additions and 187 deletions

View File

@@ -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)