update: merge ManagerBase and CommandManagerBase
Change-Id: Ib939d8d032ff9e6e27f51d9053d08da558fd5027
diff --git a/src/update/nfd-rib-command-processor.cpp b/src/update/nfd-rib-command-processor.cpp
index 6892415..21f9a7b 100644
--- a/src/update/nfd-rib-command-processor.cpp
+++ b/src/update/nfd-rib-command-processor.cpp
@@ -21,19 +21,23 @@
#include "nfd-rib-command-processor.hpp"
+#include <ndn-cxx/mgmt/nfd/control-command.hpp>
+
namespace nlsr::update {
NfdRibCommandProcessor::NfdRibCommandProcessor(ndn::mgmt::Dispatcher& dispatcher,
NamePrefixList& namePrefixList,
Lsdb& lsdb)
- : CommandManagerBase(dispatcher, namePrefixList, lsdb, "rib")
+ : CommandProcessor(dispatcher, namePrefixList, lsdb)
{
m_dispatcher.addControlCommand<ndn::nfd::RibRegisterCommand>(
ndn::mgmt::makeAcceptAllAuthorization(),
+ // the first and second arguments are ignored since the handler does not need them
std::bind(&NfdRibCommandProcessor::advertiseAndInsertPrefix, this, _3, _4));
m_dispatcher.addControlCommand<ndn::nfd::RibUnregisterCommand>(
ndn::mgmt::makeAcceptAllAuthorization(),
+ // the first and second arguments are ignored since the handler does not need them
std::bind(&NfdRibCommandProcessor::withdrawAndRemovePrefix, this, _3, _4));
}