stored_playlist: de-CamelCase moved function

Rename addToStoredPlaylist() to spl_append_uri(), and remove the
clearStoredPlaylist() macro.
This commit is contained in:
Max Kellermann 2008-10-22 17:23:58 +02:00
parent 1da921f03c
commit d2606baa79
3 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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);