face: Renaming (remove)registerPrefix to (unset)interestFilter
Change-Id: I1a9d4905f53c3352d916f5762c5471491f004cd2
diff --git a/include/ndn-cpp/face.hpp b/include/ndn-cpp/face.hpp
index fe49904..3204ae0 100644
--- a/include/ndn-cpp/face.hpp
+++ b/include/ndn-cpp/face.hpp
@@ -118,7 +118,7 @@
* @return The registered prefix ID which can be used with removeRegisteredPrefix.
*/
uint64_t
- registerPrefix
+ setInterestFilter
(const Name& prefix, const OnInterest& onInterest, const OnRegisterFailed& onRegisterFailed, const ForwardingFlags& flags = ForwardingFlags(),
WireFormat& wireFormat = *WireFormat::getDefaultWireFormat())
{
@@ -132,7 +132,7 @@
* @param registeredPrefixId The ID returned from registerPrefix.
*/
void
- removeRegisteredPrefix(uint64_t registeredPrefixId)
+ unsetInterestFilter(uint64_t registeredPrefixId)
{
node_.removeRegisteredPrefix(registeredPrefixId);
}
diff --git a/tests/test-publish-async.cpp b/tests/test-publish-async.cpp
index a8d98a4..270e6fc 100644
--- a/tests/test-publish-async.cpp
+++ b/tests/test-publish-async.cpp
@@ -124,7 +124,7 @@
Echo echo(keyChain, certificateName);
Name prefix("/testecho");
cout << "Register prefix " << prefix.toUri() << endl;
- face.registerPrefix(prefix, func_lib::ref(echo), func_lib::ref(echo));
+ face.setInterestFilter(prefix, func_lib::ref(echo), func_lib::ref(echo));
// The main event loop.
// Wait forever to receive one interest for the prefix.