queue/Queue: add method GetLight()

This commit is contained in:
Max Kellermann
2022-02-14 13:20:56 +01:00
parent ec961f26e9
commit c68dbc4e5c
4 changed files with 23 additions and 1 deletions

View File

@@ -29,6 +29,7 @@
#include <cstdint>
#include <utility>
struct LightSong;
class DetachedSong;
/**
@@ -200,6 +201,11 @@ struct Queue {
return *items[position].song;
}
/**
* Like Get(), but return a #LightSong instance.
*/
LightSong GetLight(unsigned position) const noexcept;
/**
* Returns the song at the specified order number.
*/