diff options
Diffstat (limited to 'src/playlist_save.h')
-rw-r--r-- | src/playlist_save.h | 15 |
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 |