Commit d2606baa authored by Max Kellermann's avatar Max Kellermann

stored_playlist: de-CamelCase moved function

Rename addToStoredPlaylist() to spl_append_uri(), and remove the clearStoredPlaylist() macro.
parent 1da921f0
......@@ -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);
......
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment