Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
fixup! bcl: add InterfaceStateManager and its dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomaz committed Aug 14, 2020
1 parent ddf7862 commit 52a23e3
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 52a23e3

Please sign in to comment.