diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-05-16 12:02:10 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-05-16 12:02:10 +0000 |
commit | 6cfe421cd64278f85310a258ab42c372c8a847b3 (patch) | |
tree | c1e8be35035dea1001ad8ad67c62ea13353aa09c /src/playlist.h | |
parent | 6f68587ad59a2e5f606a332b96e55f57a0f9a5fc (diff) | |
download | mpd-6cfe421cd64278f85310a258ab42c372c8a847b3.tar.gz mpd-6cfe421cd64278f85310a258ab42c372c8a847b3.tar.xz mpd-6cfe421cd64278f85310a258ab42c372c8a847b3.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/playlist.h | 20 |
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); |