aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/command.c4
-rw-r--r--src/stored_playlist.c3
-rw-r--r--src/stored_playlist.h5
3 files changed, 6 insertions, 6 deletions
diff --git a/src/command.c b/src/command.c
index 17ee7dbed..c1f0b3f3d 100644
--- a/src/command.c
+++ b/src/command.c
@@ -1115,7 +1115,7 @@ static int handlePlaylistClear(struct client *client,
{
enum playlist_result result;
- result = clearStoredPlaylist(argv[1]);
+ result = spl_clear(argv[1]);
return print_playlist_result(client, result);
}
@@ -1127,7 +1127,7 @@ static int handlePlaylistAdd(struct client *client,
enum playlist_result result;
if (isRemoteUrl(path))
- result = addToStoredPlaylist(path, playlist);
+ result = spl_append_uri(path, playlist);
else
result = addAllInToStoredPlaylist(path, playlist);
diff --git a/src/stored_playlist.c b/src/stored_playlist.c
index 1a8d64e5c..bbffa510b 100644
--- a/src/stored_playlist.c
+++ b/src/stored_playlist.c
@@ -317,7 +317,8 @@ spl_append_song(const char *utf8path, struct song *song)
return PLAYLIST_RESULT_SUCCESS;
}
-int addToStoredPlaylist(const char *url, const char *utf8file)
+int
+spl_append_uri(const char *url, const char *utf8file)
{
struct song *song;
diff --git a/src/stored_playlist.h b/src/stored_playlist.h
index 7d2ebf301..98b6505be 100644
--- a/src/stored_playlist.h
+++ b/src/stored_playlist.h
@@ -33,15 +33,14 @@ 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);
+int
+spl_append_uri(const char *file, const char *utf8file);
enum playlist_result
spl_rename(const char *utf8from, const char *utf8to);