forgot the new method

This commit is contained in:
Green Sky 2024-10-24 14:01:32 +02:00
parent 050f7abf89
commit 2ffb9f2be4
No known key found for this signature in database

View File

@ -99,6 +99,10 @@ struct ToxEventProviderI {
virtual void subscribe(ToxEventI* object, const Tox_Event_Type event_type) = 0; virtual void subscribe(ToxEventI* object, const Tox_Event_Type event_type) = 0;
virtual void unsubscribe(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) { constexpr Tox_Event_Type tox_event_from_string(const std::string_view str) {