mgmt: migrate to new Dispatcher API for control commands
Change-Id: Iaba68dde879fbb562e13ef383e0b753174708baa
diff --git a/daemon/mgmt/cs-manager.cpp b/daemon/mgmt/cs-manager.cpp
index a807df8..3be976f 100644
--- a/daemon/mgmt/cs-manager.cpp
+++ b/daemon/mgmt/cs-manager.cpp
@@ -39,12 +39,15 @@
, m_cs(cs)
, m_fwCounters(fwCounters)
{
- registerCommandHandler<ndn::nfd::CsConfigCommand>("config",
- [this] (auto&&, auto&&, auto&&... args) { changeConfig(std::forward<decltype(args)>(args)...); });
- registerCommandHandler<ndn::nfd::CsEraseCommand>("erase",
- [this] (auto&&, auto&&, auto&&... args) { erase(std::forward<decltype(args)>(args)...); });
- registerStatusDatasetHandler("info",
- [this] (auto&&, auto&&, auto&&... args) { serveInfo(std::forward<decltype(args)>(args)...); });
+ registerCommandHandler<ndn::nfd::CsConfigCommand>([this] (auto&&, auto&&, auto&&... args) {
+ changeConfig(std::forward<decltype(args)>(args)...);
+ });
+ registerCommandHandler<ndn::nfd::CsEraseCommand>([this] (auto&&, auto&&, auto&&... args) {
+ erase(std::forward<decltype(args)>(args)...);
+ });
+ registerStatusDatasetHandler("info", [this] (auto&&, auto&&, auto&&... args) {
+ serveInfo(std::forward<decltype(args)>(args)...);
+ });
}
void