aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_state.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-02-04playlist: increase playlist version after loading stateMax Kellermann1-0/+2
After the state file has been loaded, the playlist version is still "1", and "plchanges 1" returns the whole playlist. Fix this by increasing the playlist version after the state file has been loaded.
2009-02-04playlist: renamed global "playlist" variable to "g_playlist"Max Kellermann1-5/+6
Export the "g_playlist" variable, and pass it to all playlist functions. This way, we can split playlist.c easier into separate parts. The code which initializes the singleton variable is moved to playlist_global.c.
2009-02-04playlist: moved code to playlist_state.cMax Kellermann1-0/+175
Moved everything related to saving or loading the playlist from/to the state file to playlist_state.c.