diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-11-23 14:08:46 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-11-23 14:08:46 +1100 |
| commit | 09c0e1608f2d88f56d8bf87ff90482459376ad95 (patch) | |
| tree | e675756aff8c8f78fe89c4f2f9e30c713f10cbfe /src/database/include | |
| parent | b07bfbc6c70fd0bba8dff85fe4149feb9fa9b8d4 (diff) | |
| download | tangara-fw-09c0e1608f2d88f56d8bf87ff90482459376ad95.tar.gz | |
Implement adding to the playback queue from lua
Diffstat (limited to 'src/database/include')
| -rw-r--r-- | src/database/include/database.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/database/include/database.hpp b/src/database/include/database.hpp index e18701eb..36f734b8 100644 --- a/src/database/include/database.hpp +++ b/src/database/include/database.hpp @@ -193,12 +193,18 @@ class Iterator { public: Iterator(std::weak_ptr<Database>, const IndexInfo&); Iterator(std::weak_ptr<Database>, const Continuation&); + Iterator(const Iterator &); + + auto database() const { return db_; } using Callback = std::function<void(std::optional<IndexRecord>)>; auto Next(Callback) -> void; + auto NextSync() -> std::optional<IndexRecord>; + auto Prev(Callback) -> void; + private: auto InvokeNull(Callback) -> void; |
