aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_save.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-04 22:15:37 +0100
committerMax Kellermann <max@duempel.org>2009-02-04 22:15:37 +0100
commit94685aa9bdc6a7a79990ea677cc1fd880c15dd17 (patch)
tree48977f8254cbc9e4873899dfd305bc388fed879b /src/playlist_save.c
parent19397a84cc1e8c985eb76df1c106bae7fb9e2fc8 (diff)
downloadmpd-94685aa9bdc6a7a79990ea677cc1fd880c15dd17.tar.gz
mpd-94685aa9bdc6a7a79990ea677cc1fd880c15dd17.tar.xz
mpd-94685aa9bdc6a7a79990ea677cc1fd880c15dd17.zip
playlist_save: added spl_save_playlist()
spl_save_playlist() is a wrapper for spl_save_queue().
Diffstat (limited to 'src/playlist_save.c')
-rw-r--r--src/playlist_save.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/playlist_save.c b/src/playlist_save.c
index f1634eb56..65cc75e2f 100644
--- a/src/playlist_save.c
+++ b/src/playlist_save.c
@@ -98,6 +98,12 @@ spl_save_queue(const char *name_utf8, const struct queue *queue)
}
enum playlist_result
+spl_save_playlist(const char *name_utf8, const struct playlist *playlist)
+{
+ return spl_save_queue(name_utf8, &playlist->queue);
+}
+
+enum playlist_result
playlist_load_spl(struct playlist *playlist, const char *name_utf8)
{
GPtrArray *list;