src: Remove Scheduler instance from Nlsr class
refs: #1981
Change-Id: Iecbe9f975c2740ce04df8593ccde03486d4b7be8
diff --git a/src/hello-protocol.hpp b/src/hello-protocol.hpp
index fa2528c..30385d9 100644
--- a/src/hello-protocol.hpp
+++ b/src/hello-protocol.hpp
@@ -35,8 +35,9 @@
{
public:
- HelloProtocol(Nlsr& nlsr)
+ HelloProtocol(Nlsr& nlsr, ndn::Scheduler& scheduler)
: m_nlsr(nlsr)
+ , m_scheduler(scheduler)
{
}
@@ -80,6 +81,8 @@
double linkCost, const ndn::time::milliseconds& timeout);
private:
Nlsr& m_nlsr;
+ ndn::Scheduler& m_scheduler;
+
static const std::string INFO_COMPONENT;
static const std::string NLSR_COMPONENT;
};