aboutsummaryrefslogtreecommitdiff
path: root/src/queue.h
diff options
context:
space:
mode:
authorJeffrey Middleton <jeffrey.r.middleton@nasa.gov>2009-03-26 22:02:56 +0100
committerMax Kellermann <max@duempel.org>2009-03-26 22:02:56 +0100
commit13208bf5a7c91a6406195139f1068f173ccdac94 (patch)
tree9e4d346b9ec78eb84be3f7cb079206eb86977fe4 /src/queue.h
parent7684c446c6f9b699ae4ea30b59cde81ec31efa53 (diff)
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]
Diffstat (limited to 'src/queue.h')
-rw-r--r--src/queue.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/queue.h b/src/queue.h
index 402c6bd2..7f46c2e1 100644
--- a/src/queue.h
+++ b/src/queue.h
@@ -292,6 +292,12 @@ 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.
*/
void