From 6cfe421cd64278f85310a258ab42c372c8a847b3 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Wed, 16 May 2007 12:02:10 +0000 Subject: Committing pat's rewrite of the stored playlist code. This also adds two new commands: playlistmove and playlistdelete. git-svn-id: https://svn.musicpd.org/mpd/trunk@6116 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playlist.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src/playlist.h') 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 #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); -- cgit v1.2.3