aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-10-03code style, indent with tabs XIMax Kellermann1-2/+0
Follow the same code style als MPD itself.
2008-10-02configure.ac: define ENABLE_x_SCREEN instead of DISABLE_x_SCREENMax Kellermann1-1/+0
Everybody who uses the ENABLE_ macros has to include ncmpc.h. We're better off defining those in config.h via configure.ac.
2008-09-18playlist: reset id in playlist_clear()Max Kellermann1-0/+2
The playlist is reset when the connection to the MPD server is closed. After a successful reconnect, we have to reload the full playlist. To remember this, also reset the id attribute.
2008-09-18playlist: removed "updated" flagMax Kellermann1-1/+0
The caller may check the playlist.id instead of checking the old "updated" flag.
2008-09-16use GPtrArray instead of GArray for playlist songsMax Kellermann1-4/+3
2008-09-16playlist: hide direct accesses in inline functionsMax Kellermann1-10/+7
Added functions like playlist_length(), playlist_get(), playlist_replace(), playlist_remove(). Don't access the mpdclient_playlist struct directly.
2008-09-16mpdclient: added mpdclient_playlist_init(), mpdclient_playlist_clear()Max Kellermann1-3/+22
Moved code from mpdclient_new() and mpdclient_playlist_free(). In mpdclient_disconnect(), call mpdclient_playlist_clear() instead of mpdclient_playlist_free() (which is now called in mpdclient_free()).
2008-09-16mpdclient: moved code to playlist.cMax Kellermann1-0/+113
Move everything which manipulates the mpdclient_playlist struct to playlist.c. Many of the functions get a mpdclient pointer instead of a playlist; this will be changed later. The functions mpdclient_playlist_update() and mpdclient_playlist_update_changes() stay in mpdclient.c for now, since they are tightly connected to the client code.