aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-22 17:23:58 +0200
committerMax Kellermann <max@duempel.org>2008-10-22 17:23:58 +0200
commitd2606baa7923c2ba6befd87a6c8acf20ce5376f1 (patch)
tree957171de09f1b3de1c51b74cc44ced8cb23c35b1
parent1da921f03cc3063dc309d0e1afdcd41e201f55a2 (diff)
downloadmpd-d2606baa7923c2ba6befd87a6c8acf20ce5376f1.tar.gz
mpd-d2606baa7923c2ba6befd87a6c8acf20ce5376f1.tar.xz
mpd-d2606baa7923c2ba6befd87a6c8acf20ce5376f1.zip
stored_playlist: de-CamelCase moved function
Rename addToStoredPlaylist() to spl_append_uri(), and remove the clearStoredPlaylist() macro.
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);