aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:38:59 +0200
committerEric Wong <normalperson@yhbt.net>2008-09-09 00:55:39 -0700
commit9e53c28046bae4a02387aba5ddaddc74f7bcf246 (patch)
tree190c3bb482e8799da5a5499780a3ce0128449a42 /src/playlist.h
parentff06a92213c0d430f93552188cc569a5fa506e18 (diff)
downloadmpd-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 '')
-rw-r--r--src/playlist.h4
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);