aboutsummaryrefslogtreecommitdiffstats
path: root/src/Queue.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-22 00:41:57 +0200
committerMax Kellermann <max@duempel.org>2013-10-22 00:59:56 +0200
commitfc05768374ac839e7725506fe0a089fc2bfdf124 (patch)
tree99d804c55ef01eaa5d491c74b45197ea5773dd25 /src/Queue.hxx
parent03b57df6308a7f84e0e597c3687e7adfc512c630 (diff)
downloadmpd-fc05768374ac839e7725506fe0a089fc2bfdf124.tar.gz
mpd-fc05768374ac839e7725506fe0a089fc2bfdf124.tar.xz
mpd-fc05768374ac839e7725506fe0a089fc2bfdf124.zip
Queue: add method ModifyAtPosition()
Diffstat (limited to 'src/Queue.hxx')
-rw-r--r--src/Queue.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Queue.hxx b/src/Queue.hxx
index e3a66f3a8..d5b9218a5 100644
--- a/src/Queue.hxx
+++ b/src/Queue.hxx
@@ -245,6 +245,17 @@ struct queue {
* IncrementVersion() after all modifications have been made.
* number.
*/
+ void ModifyAtPosition(unsigned position) {
+ assert(position < length);
+
+ items[position].version = version;
+ }
+
+ /**
+ * Marks the specified song as "modified". Call
+ * IncrementVersion() after all modifications have been made.
+ * number.
+ */
void ModifyAtOrder(unsigned order);
/**