aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue/Queue.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-11-25 19:00:06 +0100
committerMax Kellermann <max@duempel.org>2014-11-26 08:50:58 +0100
commit7519768cb1a9ed27012111d30cc69238616aba04 (patch)
tree650c7edb769033bb26e776683b38ce812eb97da8 /src/queue/Queue.hxx
parent9af470c92dd7dab57740fff266e5fd49f437572d (diff)
downloadmpd-7519768cb1a9ed27012111d30cc69238616aba04.tar.gz
mpd-7519768cb1a9ed27012111d30cc69238616aba04.tar.xz
mpd-7519768cb1a9ed27012111d30cc69238616aba04.zip
Queue: add "reorder" parameter to SetPriority()
Diffstat (limited to 'src/queue/Queue.hxx')
-rw-r--r--src/queue/Queue.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/queue/Queue.hxx b/src/queue/Queue.hxx
index 016619e65..32acac689 100644
--- a/src/queue/Queue.hxx
+++ b/src/queue/Queue.hxx
@@ -340,10 +340,13 @@ struct Queue {
/**
* Shuffles a (position) range in the queue. The songs are physically
* shuffled, not by using the "order" mapping.
+ *
+ * @param reorder false to suppress updating the order list
*/
void ShuffleRange(unsigned start, unsigned end);
- bool SetPriority(unsigned position, uint8_t priority, int after_order);
+ bool SetPriority(unsigned position, uint8_t priority, int after_order,
+ bool reorder=true);
bool SetPriorityRange(unsigned start_position, unsigned end_position,
uint8_t priority, int after_order);