src: Updating code to compile with the latest ndn-cxx library
This commit includes updates against the latest Face API and replaces
uses of deprecated methods.
Change-Id: I33ad398d26f8faf9f9627ff329ce0936e0911ab2
diff --git a/rib/rib-manager.hpp b/rib/rib-manager.hpp
index ef38ae1..1407fb2 100644
--- a/rib/rib-manager.hpp
+++ b/rib/rib-manager.hpp
@@ -120,14 +120,22 @@
const RibEntry& ribEntry);
void
+ onNrdCommandPrefixAddNextHopSuccess(const Name& prefix);
+
+ void
+ onNrdCommandPrefixAddNextHopError(const Name& name, const std::string& msg);
+
+ void
+ onAddNextHopSuccess(const Name& prefix);
+
+ void
+ onAddNextHopError(const Name& name, const std::string& msg);
+
+ void
onControlHeaderSuccess();
void
onControlHeaderError(uint32_t code, const std::string& reason);
-
- void
- setInterestFilterFailed(const Name& name, const std::string& msg);
-
static bool
extractParameters(const Name::Component& parameterComponent,
ControlParameters& extractedParameters);
@@ -142,7 +150,7 @@
private:
Rib m_managedRib;
ndn::Face m_face;
- ndn::shared_ptr<ndn::nfd::Controller> m_nfdController;
+ ndn::nfd::Controller m_nfdController;
ndn::KeyChain m_keyChain;
ndn::ValidatorConfig m_localhostValidator;
ndn::ValidatorConfig m_localhopValidator;