diff options
author | Max Kellermann <max@duempel.org> | 2008-10-22 17:23:11 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-22 17:23:11 +0200 |
commit | 1da921f03cc3063dc309d0e1afdcd41e201f55a2 (patch) | |
tree | 9662e1635b2404a429fc0b725716ac7efa40d9c5 /src/stored_playlist.h | |
parent | ac853b6165f8c9b0caa414d4c7182715e28152f6 (diff) | |
download | mpd-1da921f03cc3063dc309d0e1afdcd41e201f55a2.tar.gz mpd-1da921f03cc3063dc309d0e1afdcd41e201f55a2.tar.xz mpd-1da921f03cc3063dc309d0e1afdcd41e201f55a2.zip |
stored_playlist: moved functions from playlist.c
The two functions clearStoredPlaylist() and addToStoredPlaylist()
don't belong into playlist.c. clearStoredPlaylist() was a wrapper for
spl_clear(), and is converted into a CPP macro for now.
Diffstat (limited to 'src/stored_playlist.h')
-rw-r--r-- | src/stored_playlist.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stored_playlist.h b/src/stored_playlist.h index 4f02833f1..7d2ebf301 100644 --- a/src/stored_playlist.h +++ b/src/stored_playlist.h @@ -33,12 +33,16 @@ spl_move_index(const char *utf8path, int src, int dest); enum playlist_result spl_clear(const char *utf8path); +#define clearStoredPlaylist spl_clear + enum playlist_result spl_remove_index(const char *utf8path, int pos); enum playlist_result spl_append_song(const char *utf8path, struct song *song); +int addToStoredPlaylist(const char *file, const char *utf8file); + enum playlist_result spl_rename(const char *utf8from, const char *utf8to); |