aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-22 17:21:59 +0200
committerMax Kellermann <max@duempel.org>2008-10-22 17:21:59 +0200
commitac853b6165f8c9b0caa414d4c7182715e28152f6 (patch)
tree59ef321a54a9bed5b2e1c1a45ef937f7c5780c49 /src/playlist.c
parenta4def81313a3be9f511f8f4cdab77ee553b7e5a3 (diff)
downloadmpd-ac853b6165f8c9b0caa414d4c7182715e28152f6.tar.gz
mpd-ac853b6165f8c9b0caa414d4c7182715e28152f6.tar.xz
mpd-ac853b6165f8c9b0caa414d4c7182715e28152f6.zip
stored_playlist: no CamelCase
Renamed all public functions, prefix is "spl_".
Diffstat (limited to 'src/playlist.c')
-rw-r--r--src/playlist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 404e8ade6..9244b8554 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -220,7 +220,7 @@ void clearPlaylist(void)
int clearStoredPlaylist(const char *utf8file)
{
- return removeAllFromStoredPlaylistByPath(utf8file);
+ return spl_clear(utf8file);
}
void showPlaylist(struct client *client)
@@ -583,14 +583,14 @@ int addToStoredPlaylist(const char *url, const char *utf8file)
song = db_get_song(url);
if (song)
- return appendSongToStoredPlaylistByPath(utf8file, song);
+ return spl_append_song(utf8file, song);
if (!isValidRemoteUtf8Url(url))
return ACK_ERROR_NO_EXIST;
song = song_remote_new(url);
if (song) {
- int ret = appendSongToStoredPlaylistByPath(utf8file, song);
+ int ret = spl_append_song(utf8file, song);
song_free(song);
return ret;
}
@@ -1343,7 +1343,7 @@ int PlaylistInfo(struct client *client, const char *utf8file, int detail)
ListNode *node;
List *list;
- if (!(list = loadStoredPlaylist(utf8file)))
+ if (!(list = spl_load(utf8file)))
return -1;
node = list->firstNode;
@@ -1375,7 +1375,7 @@ enum playlist_result loadPlaylist(struct client *client, const char *utf8file)
ListNode *node;
List *list;
- if (!(list = loadStoredPlaylist(utf8file)))
+ if (!(list = spl_load(utf8file)))
return PLAYLIST_RESULT_NO_SUCH_LIST;
node = list->firstNode;