From 13208bf5a7c91a6406195139f1068f173ccdac94 Mon Sep 17 00:00:00 2001 From: Jeffrey Middleton Date: Thu, 26 Mar 2009 22:02:56 +0100 Subject: queue/playlist/command: move range 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] --- src/queue.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/queue.h') diff --git a/src/queue.h b/src/queue.h index 402c6bd26..7f46c2e19 100644 --- a/src/queue.h +++ b/src/queue.h @@ -291,6 +291,12 @@ queue_swap_order(struct queue *queue, unsigned order1, unsigned order2) void queue_move(struct queue *queue, unsigned from, unsigned to); +/** + * Moves a range of songs to a new position. + */ +void +queue_move_range(struct queue *queue, unsigned start, unsigned end, unsigned to); + /** * Removes a song from the playlist. */ -- cgit v1.2.3