From 52a23e36269e749e20acc33cc0774fca00476bde Mon Sep 17 00:00:00 2001 From: Mario Maz Date: Fri, 14 Aug 2020 11:09:39 +0200 Subject: [PATCH] fixup! bcl: add InterfaceStateManager and its dependencies --- .../bcl/include/bcl/network/interface_state_monitor.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/beerocks/bcl/include/bcl/network/interface_state_monitor.h b/common/beerocks/bcl/include/bcl/network/interface_state_monitor.h index ba04a68ece..6c5de6f349 100644 --- a/common/beerocks/bcl/include/bcl/network/interface_state_monitor.h +++ b/common/beerocks/bcl/include/bcl/network/interface_state_monitor.h @@ -58,6 +58,14 @@ class InterfaceStateMonitor { */ void set_handler(const StateChangeHandler &handler) { m_handler = handler; } + /** + * @brief Clears previously set state-changed event handler function. + * + * Clears callback function previously set. + * Behaves like set_handler(nullptr) + */ + void clear_handler() { m_handler = nullptr; } + protected: /** * @brief Notifies a network interface state-changed event.