From 09c0e1608f2d88f56d8bf87ff90482459376ad95 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 23 Nov 2023 14:08:46 +1100 Subject: Implement adding to the playback queue from lua --- src/database/include/database.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/database/include/database.hpp') 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, const IndexInfo&); Iterator(std::weak_ptr, const Continuation&); + Iterator(const Iterator &); + + auto database() const { return db_; } using Callback = std::function)>; auto Next(Callback) -> void; + auto NextSync() -> std::optional; + auto Prev(Callback) -> void; + private: auto InvokeNull(Callback) -> void; -- cgit v1.2.3