aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_save.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-25 14:11:47 +0100
committerMax Kellermann <max@duempel.org>2009-01-25 14:11:47 +0100
commit98cb8f3969de6b0151d2777b2344d6ff8fd44f1b (patch)
treeaf21157bb4ee43d0198c1cfb3cea740f3aaa0d93 /src/playlist_save.h
parent69c74afa2512747122880c35ac685d319057ab6d (diff)
downloadmpd-98cb8f3969de6b0151d2777b2344d6ff8fd44f1b.tar.gz
mpd-98cb8f3969de6b0151d2777b2344d6ff8fd44f1b.tar.xz
mpd-98cb8f3969de6b0151d2777b2344d6ff8fd44f1b.zip
playlist: moved savePlaylist() and loadPlaylsit() to playlist_save.c
Diffstat (limited to '')
-rw-r--r--src/playlist_save.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/playlist_save.h b/src/playlist_save.h
index b9e8169e6..151595755 100644
--- a/src/playlist_save.h
+++ b/src/playlist_save.h
@@ -19,6 +19,8 @@
#ifndef MPD_PLAYLIST_SAVE_H
#define MPD_PLAYLIST_SAVE_H
+#include "playlist.h"
+
#include <stdio.h>
struct song;
@@ -29,4 +31,17 @@ playlist_print_song(FILE *fp, const struct song *song);
void
playlist_print_uri(FILE *fp, const char *uri);
+/**
+ * Saves a queue object into a stored playlist file.
+ */
+enum playlist_result
+spl_save_queue(const char *name_utf8, const struct queue *queue);
+
+/**
+ * Loads a stored playlist file, and append all songs to the global
+ * playlist.
+ */
+enum playlist_result
+playlist_load_spl(const char *name_utf8);
+
#endif