From a65e20b50eaf603dd551e5be0aa05f807aa7eb05 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Oct 2008 19:15:50 +0200 Subject: stored_playlist: added spl_list() spl_list() provides an interface for enumerating all stored playlists. This separates the internal playlist logic from the protocol specific function lsPlaylists(). --- src/stored_playlist.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/stored_playlist.h') diff --git a/src/stored_playlist.h b/src/stored_playlist.h index 637a1093d..f524829df 100644 --- a/src/stored_playlist.h +++ b/src/stored_playlist.h @@ -22,8 +22,26 @@ #include "list.h" #include "playlist.h" +#include + struct song; +struct stored_playlist_info { + char *name; + + time_t mtime; +}; + +/** + * Returns a list of stored_playlist_info struct pointers. Returns + * NULL if an error occured. + */ +GPtrArray * +spl_list(void); + +void +spl_list_free(GPtrArray *list); + List * spl_load(const char *utf8path); -- cgit v1.2.3