summaryrefslogtreecommitdiff
path: root/playlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'playlist.h')
-rw-r--r--playlist.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/playlist.h b/playlist.h
new file mode 100644
index 0000000..83d532f
--- /dev/null
+++ b/playlist.h
@@ -0,0 +1,22 @@
+#ifndef playlist_h
+#define playlist_h
+
+#include "config.h"
+#include "library.h"
+
+typedef struct {
+ char name[32];
+ Song* songs[playlist_max];
+ int cnt;
+} Playlist;
+
+void init_playlist(Playlist* p);
+void playlist_rm(Playlist* p, int i);
+void playlist_add(Playlist* p, Song* s);
+void playlist_add_first(Playlist* p, Song* s);
+void playlist_shuffle(Playlist* p);
+void playlist_save(const Playlist* p);
+int playlist_load(Library* l, Playlist* p, const char* name);
+void get_playlist_dir(char* buf);
+
+#endif