From 8375f92802d3aa7667bfc6f22f6d2a72361c9808 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 4 Nov 2024 11:46:24 -0500 Subject: Websockets server! --- wizard.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'wizard.h') diff --git a/wizard.h b/wizard.h index a02197b..8269852 100644 --- a/wizard.h +++ b/wizard.h @@ -3,6 +3,7 @@ #include +#include #include #include @@ -11,9 +12,13 @@ class wizard { public: + using status_callback_type = std::function; + wizard(const cardset& cards, const imagestore& images, std::string text, std::mt19937& rng); + void set_status_callback(status_callback_type callback); + Magick::Image run(); private: @@ -22,6 +27,8 @@ class wizard { std::string text_; std::mt19937 rng_; + + status_callback_type status_callback_; }; #endif /* end of include guard: WIZARD_H_1014B13E */ -- cgit 1.4.1