From 2ffb9f2be430f95c1774fc5b21cca0a28e426efa Mon Sep 17 00:00:00 2001 From: Green Sky Date: Thu, 24 Oct 2024 14:01:32 +0200 Subject: [PATCH] forgot the new method --- solanaceae/toxcore/tox_event_interface.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/solanaceae/toxcore/tox_event_interface.hpp b/solanaceae/toxcore/tox_event_interface.hpp index ea68f2d..84bf425 100644 --- a/solanaceae/toxcore/tox_event_interface.hpp +++ b/solanaceae/toxcore/tox_event_interface.hpp @@ -99,6 +99,10 @@ struct ToxEventProviderI { virtual void subscribe(ToxEventI* object, const Tox_Event_Type event_type) = 0; virtual void unsubscribe(ToxEventI* object, const Tox_Event_Type event_type) = 0; + + SubscriptionReference newSubRef(ToxEventI* object) { + return SubscriptionReference{*this, object}; + } }; constexpr Tox_Event_Type tox_event_from_string(const std::string_view str) {