aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/playlist.h')
-rw-r--r--src/playlist.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/playlist.h b/src/playlist.h
index ce937fb6d..0ae3a677f 100644
--- a/src/playlist.h
+++ b/src/playlist.h
@@ -28,6 +28,24 @@
#include <time.h>
#define PLAYLIST_FILE_SUFFIX "m3u"
+#define PLAYLIST_COMMENT '#'
+
+typedef struct _Playlist {
+ Song **songs;
+ /* holds version a song was modified on */
+ mpd_uint32 *songMod;
+ int *order;
+ int *positionToId;
+ int *idToPosition;
+ int length;
+ int current;
+ int queued;
+ int repeat;
+ int random;
+ mpd_uint32 version;
+} Playlist;
+
+extern int playlist_saveAbsolutePaths;
void initPlaylist(void);
@@ -47,8 +65,6 @@ int addToStoredPlaylist(int fd, char *file, char *utf8file);
int addSongToPlaylist(int fd, Song * song, int printId);
-int addSongToStoredPlaylist(int fd, Song *song, char *utf8file);
-
int showPlaylist(int fd);
int deleteFromPlaylist(int fd, int song);