aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* code style, indent with tabs XIMax Kellermann2008-10-031-2/+0
| | | | Follow the same code style als MPD itself.
* playlist: removed "updated" flagMax Kellermann2008-09-181-3/+0
| | | | | The caller may check the playlist.id instead of checking the old "updated" flag.
* playlist: added playlist_remove_reuse()Max Kellermann2008-09-171-2/+7
| | | | | | | | | | playlist_remove_reuse() removes a song from the playlist, but does not free it. Use this function in mpdclient_cmd_delete() to fix a segmentation fault: the song pointer was still used after it was freed, by passing it to mpdclient_playlist_callback(). Free the song manually now. Reorganize and simply some code in mpdclient_cmd_delete().
* use GPtrArray instead of GArray for playlist songsMax Kellermann2008-09-161-9/+7
|
* playlist: hide direct accesses in inline functionsMax Kellermann2008-09-161-0/+73
| | | | | | Added functions like playlist_length(), playlist_get(), playlist_replace(), playlist_remove(). Don't access the mpdclient_playlist struct directly.
* mpdclient: added mpdclient_playlist_init(), mpdclient_playlist_clear()Max Kellermann2008-09-161-0/+7
| | | | | | 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()).
* mpdclient: moved code to playlist.cMax Kellermann2008-09-161-0/+55
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.