rib: Insert RIB command prefixes into RIB
refs: #2312
Change-Id: I9452f60d4c2162ad265603d3d5d44f083452ec58
diff --git a/rib/rib-manager.hpp b/rib/rib-manager.hpp
index efaf760..3819d5a 100644
--- a/rib/rib-manager.hpp
+++ b/rib/rib-manager.hpp
@@ -142,9 +142,12 @@
const ControlParameters& parameters,
const Route& route);
+PUBLIC_WITH_TESTS_ELSE_PRIVATE:
void
- onNrdCommandPrefixAddNextHopSuccess(const Name& prefix);
+ onNrdCommandPrefixAddNextHopSuccess(const Name& prefix,
+ const ndn::nfd::ControlParameters& result);
+private:
void
onNrdCommandPrefixAddNextHopError(const Name& name, const std::string& msg);
@@ -272,8 +275,11 @@
const SignedVerbDispatchTable m_signedVerbDispatch;
static const Name COMMAND_PREFIX; // /localhost/nrd
+
+PUBLIC_WITH_TESTS_ELSE_PRIVATE:
static const Name REMOTE_COMMAND_PREFIX; // /localhop/nrd
+private:
// number of components in an invalid, but not malformed, unsigned command.
// (/localhost/nrd + verb + options) = 4
static const size_t COMMAND_UNSIGNED_NCOMPS;