src: Update source code to use new API and fix compilation errors due to missing headers
Change-Id: I295fbcdcd6ab114a565d9b7531387728a6596884
Refs: 1629
diff --git a/src/handles/read-handle.cpp b/src/handles/read-handle.cpp
index d0e80b3..e13a85c 100644
--- a/src/handles/read-handle.cpp
+++ b/src/handles/read-handle.cpp
@@ -31,6 +31,12 @@
}
void
+ReadHandle::onRegisterSuccess(const Name& prefix)
+{
+ std::cerr << "Successfully registered prefix " << prefix << std::endl;
+}
+
+void
ReadHandle::onRegisterFailed(const Name& prefix, const std::string& reason)
{
std::cerr << "ERROR: Failed to register prefix in local hub's daemon" << std::endl;
@@ -42,6 +48,7 @@
{
getFace().setInterestFilter(prefix,
bind(&ReadHandle::onInterest, this, _1, _2),
+ bind(&ReadHandle::onRegisterSuccess, this, _1),
bind(&ReadHandle::onRegisterFailed, this, _1, _2));
}