From e1bf96672e8ef46b4ed20eba2c91efa048c4789c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 7 Sep 2008 13:38:59 +0200 Subject: playlist: moved "repeat" and "random" value checks to command.c Client's input values should be validated by the command implementation, and the core libraries shouldn't talk to the client directly if possible. Thus, setPlaylistRepeatStatus() and setPlaylistRandomStatus() don't get the file descriptor, and cannot fail (return void). --- src/playlist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/playlist.h') diff --git a/src/playlist.h b/src/playlist.h index 92378eeb2..9ef91e3e0 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -105,11 +105,11 @@ int loadPlaylist(int fd, const char *utf8file); int getPlaylistRepeatStatus(void); -int setPlaylistRepeatStatus(int fd, int status); +void setPlaylistRepeatStatus(int status); int getPlaylistRandomStatus(void); -int setPlaylistRandomStatus(int fd, int status); +void setPlaylistRandomStatus(int status); int getPlaylistCurrentSong(void); -- cgit v1.2.3