aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* queue/playlist/command: move rangeJeffrey Middleton2009-03-261-0/+6
| | | | | | | | | | | The move command now accepts a range for the first argument, in the same form as other range commands, e.g. move 15:17 3. The first song in the range is placed at the destination position. Note that as with other range commands, the range is inclusive on the left only; this example would move only songs 15 and 16, not 17. [mk: fixed signed/unsigned warnings; use G_MAXUINT instead of UINT_MAX]
* all: Update copyright header.Avuton Olrich2009-03-131-3/+4
| | | | | | | | This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
* queue: added queue_shuffle_order_last()Max Kellermann2009-01-251-0/+8
| | | | | This function shuffles the last song of a range. This is used by addSongToPlaylist().
* queue: added queue_shuffle_order()Max Kellermann2009-01-231-0/+7
| | | | | | | | | | | The function shuffles the virtual order of songs, but does not move them physically. This is used in random mode. The new function replaces playlist.c's randomizeOrder() function, which was aware of playlist.current and playlist.queued. The latter is always -1 anyway, and the former as preserved by the caller, by converting playlist.current to a position, and then back to an order number.
* queue: merged songs, songMod, positionToId into struct queue_itemMax Kellermann2009-01-231-11/+19
| | | | | Move everything which belongs together into one common struct. This simplifies the implementation of several queue operations.
* playlist: moved code to queue.cMax Kellermann2009-01-221-0/+314
Attempt to untie the playlist.c knot: moved the playlist storage code to queue.c, struct queue.