diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 13:44:12 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-09 01:11:00 -0700 |
commit | 38526852f3c40a6014f86b832b37d31507f6131b (patch) | |
tree | f8eddfff4a11598c0e5cf6f465e4a08af3be644b /src/storedPlaylist.h | |
parent | 6dcd7fea0e3cfc8f51097f11c0c84793584e8f0b (diff) | |
download | mpd-38526852f3c40a6014f86b832b37d31507f6131b.tar.gz mpd-38526852f3c40a6014f86b832b37d31507f6131b.tar.xz mpd-38526852f3c40a6014f86b832b37d31507f6131b.zip |
playlist: don't pass "fd" to storedPlaylist.c functions
Return an "enum playlist_result" value instead of calling
commandError() in storedPlaylist.c.
Diffstat (limited to 'src/storedPlaylist.h')
-rw-r--r-- | src/storedPlaylist.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/storedPlaylist.h b/src/storedPlaylist.h index a7806386b..964669d35 100644 --- a/src/storedPlaylist.h +++ b/src/storedPlaylist.h @@ -23,14 +23,21 @@ #include "list.h" #include "playlist.h" -List *loadStoredPlaylist(int fd, const char *utf8path); +List *loadStoredPlaylist(const char *utf8path); -int moveSongInStoredPlaylistByPath(int fd, const char *utf8path, int src, int dest); -int removeAllFromStoredPlaylistByPath(int fd, const char *utf8path); -int removeOneSongFromStoredPlaylistByPath(int fd, const char *utf8path, int pos); +enum playlist_result +moveSongInStoredPlaylistByPath(const char *utf8path, int src, int dest); -int appendSongToStoredPlaylistByPath(int fd, const char *utf8path, Song *song); +enum playlist_result +removeAllFromStoredPlaylistByPath(const char *utf8path); -int renameStoredPlaylist(int fd, const char *utf8from, const char *utf8to); +enum playlist_result +removeOneSongFromStoredPlaylistByPath(const char *utf8path, int pos); + +enum playlist_result +appendSongToStoredPlaylistByPath(const char *utf8path, Song *song); + +enum playlist_result +renameStoredPlaylist(const char *utf8from, const char *utf8to); #endif |