From 1da921f03cc3063dc309d0e1afdcd41e201f55a2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Oct 2008 17:23:11 +0200 Subject: 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. --- src/stored_playlist.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/stored_playlist.h') 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); -- cgit v1.2.3