aboutsummaryrefslogtreecommitdiffstats
path: root/src/stored_playlist.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-22 19:15:50 +0200
committerMax Kellermann <max@duempel.org>2008-10-22 19:15:50 +0200
commita65e20b50eaf603dd551e5be0aa05f807aa7eb05 (patch)
tree5e81276f74aad43f5eac5cc7b8e9a2b9090b0965 /src/stored_playlist.h
parent3a164ef8e61c27eb69d83e479cced6ea1b03b07d (diff)
downloadmpd-a65e20b50eaf603dd551e5be0aa05f807aa7eb05.tar.gz
mpd-a65e20b50eaf603dd551e5be0aa05f807aa7eb05.tar.xz
mpd-a65e20b50eaf603dd551e5be0aa05f807aa7eb05.zip
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().
Diffstat (limited to '')
-rw-r--r--src/stored_playlist.h18
1 files changed, 18 insertions, 0 deletions
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 <glib.h>
+
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);