nlsr: Add dispatcher to NLSR class

refs: #3930

Change-Id: I69d3a1a87558118ea25258f08f7441e0d7ebe73d
diff --git a/src/nlsr.hpp b/src/nlsr.hpp
index cb2ff51..8080485 100644
--- a/src/nlsr.hpp
+++ b/src/nlsr.hpp
@@ -31,6 +31,7 @@
 #include <ndn-cxx/util/scheduler.hpp>
 #include <ndn-cxx/mgmt/nfd/face-event-notification.hpp>
 #include <ndn-cxx/mgmt/nfd/face-monitor.hpp>
+#include <ndn-cxx/mgmt/dispatcher.hpp>
 
 #include "adjacency-list.hpp"
 #include "common.hpp"
@@ -288,6 +289,12 @@
     return m_prefixUpdateProcessor;
   }
 
+  ndn::mgmt::Dispatcher&
+  getDispatcher()
+  {
+    return m_dispatcher;
+  }
+
   void
   createFace(const std::string& faceUri,
              const CommandSucceedCallback& onSuccess,
@@ -385,6 +392,7 @@
   ndn::security::SigningInfo m_signingInfo;
   ndn::Name m_defaultCertName;
   update::PrefixUpdateProcessor m_prefixUpdateProcessor;
+  ndn::mgmt::Dispatcher m_dispatcher;
 
   ndn::nfd::FaceMonitor m_faceMonitor;