adapt to Controller::CommandFailCallback with ControlResponse
refs #3739
Change-Id: I193fb11fd96bd91808fc6e3af22a8da2511246e2
diff --git a/src/utility/face-controller.cpp b/src/utility/face-controller.cpp
index 954a074..7b0da61 100644
--- a/src/utility/face-controller.cpp
+++ b/src/utility/face-controller.cpp
@@ -76,7 +76,8 @@
const FaceUri& request)
{
_LOG_WARN("Could not convert " << request << " to canonical form: " << reason);
- onFailure(CANONIZE_ERROR_CODE, "Could not canonize face-uri: " + request.toString());
+ onFailure(ndn::nfd::ControlResponse(CANONIZE_ERROR_CODE,
+ "Could not canonize face-uri: " + request.toString()));
}
} // namespace util
diff --git a/src/utility/face-controller.hpp b/src/utility/face-controller.hpp
index 3c6edb6..09e6163 100644
--- a/src/utility/face-controller.hpp
+++ b/src/utility/face-controller.hpp
@@ -31,8 +31,8 @@
class FaceController : boost::noncopyable
{
public:
- typedef ndn::function<void(const ndn::nfd::ControlParameters&)> CommandSuccessCallback;
- typedef ndn::function<void(uint32_t,const std::string&)> CommandFailureCallback;
+ typedef ndn::nfd::Controller::CommandSucceedCallback CommandSuccessCallback;
+ typedef ndn::nfd::Controller::CommandFailCallback CommandFailureCallback;
FaceController(boost::asio::io_service& io, ndn::nfd::Controller& controller)
: m_ioService(io)