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]
This commit is contained in:
committed by
Max Kellermann
parent
7684c446c6
commit
13208bf5a7
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user