diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 13:38:59 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-09 00:55:39 -0700 |
commit | 9e53c28046bae4a02387aba5ddaddc74f7bcf246 (patch) | |
tree | 190c3bb482e8799da5a5499780a3ce0128449a42 /src/playlist.h | |
parent | ff06a92213c0d430f93552188cc569a5fa506e18 (diff) | |
download | mpd-9e53c28046bae4a02387aba5ddaddc74f7bcf246.tar.gz mpd-9e53c28046bae4a02387aba5ddaddc74f7bcf246.tar.xz mpd-9e53c28046bae4a02387aba5ddaddc74f7bcf246.zip |
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).
Diffstat (limited to 'src/playlist.h')
-rw-r--r-- | src/playlist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playlist.h b/src/playlist.h index 83b02fd08..cae38becf 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -96,11 +96,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); |