comm: Make SyncLogic responsible for update prefix

refs: #2289

Change-Id: I7687e36c88853bdf58de654b1ca280662a826b4b
diff --git a/src/lsdb.hpp b/src/lsdb.hpp
index 5d66f01..efef94c 100644
--- a/src/lsdb.hpp
+++ b/src/lsdb.hpp
@@ -37,13 +37,15 @@
 using namespace ndn::time;
 
 class Nlsr;
+class SyncLogicHandler;
 
 class Lsdb
 {
 public:
-  Lsdb(Nlsr& nlsr, ndn::Scheduler& scheduler)
+  Lsdb(Nlsr& nlsr, ndn::Scheduler& scheduler, SyncLogicHandler& sync)
     : m_nlsr(nlsr)
     , m_scheduler(scheduler)
+    , m_sync(sync)
     , m_hasSyncPrefixBeenRegistered(false)
     , m_lsaRefreshTime(0)
   {
@@ -242,6 +244,7 @@
 private:
   Nlsr& m_nlsr;
   ndn::Scheduler& m_scheduler;
+  SyncLogicHandler& m_sync;
 
   std::list<NameLsa> m_nameLsdb;
   std::list<AdjLsa> m_adjLsdb;