helper+model: Create helper to select the replacement policy of NFD's CS
Change-Id: I10933b5c96fd95bc395a1d08642a1e07e826dc45
Refs: #3837
diff --git a/model/ndn-l3-protocol.hpp b/model/ndn-l3-protocol.hpp
index a34d36f..cca0277 100644
--- a/model/ndn-l3-protocol.hpp
+++ b/model/ndn-l3-protocol.hpp
@@ -40,6 +40,9 @@
namespace pit {
class Entry;
} // namespace pit
+namespace cs {
+class Policy;
+} // namespace cs
} // namespace nfd
namespace ns3 {
@@ -153,6 +156,14 @@
void
injectInterest(const Interest& interest);
+ typedef std::function<std::unique_ptr<nfd::cs::Policy>()> PolicyCreationCallback;
+
+ /**
+ * \brief Set the replacement policy of NFD's CS
+ */
+ void
+ setCsReplacementPolicy(const PolicyCreationCallback& policy);
+
public: // Workaround for python bindings
static Ptr<L3Protocol>
getL3Protocol(Ptr<Object> node);