Queue: add method ModifyAtPosition()

This commit is contained in:
Max Kellermann
2013-10-22 00:41:57 +02:00
parent 03b57df630
commit fc05768374
2 changed files with 12 additions and 1 deletions

View File

@@ -240,6 +240,17 @@ struct queue {
*/
void IncrementVersion();
/**
* Marks the specified song as "modified". Call
* 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.