mgmt+face: move protocol-specific face creation checks into protocol factories
Also brought implementation of faces/create in line with design
refs #3731
Change-Id: I4f48079136b42c7fdbd4fdfba37116d2565f9dc1
diff --git a/daemon/mgmt/face-manager.hpp b/daemon/mgmt/face-manager.hpp
index f31f04b..094f288 100644
--- a/daemon/mgmt/face-manager.hpp
+++ b/daemon/mgmt/face-manager.hpp
@@ -77,12 +77,13 @@
PUBLIC_WITH_TESTS_ELSE_PRIVATE: // helpers for ControlCommand
void
- afterCreateFaceSuccess(ControlParameters& parameters,
+ afterCreateFaceSuccess(const ControlParameters& parameters,
const shared_ptr<Face>& newFace,
const ndn::mgmt::CommandContinuation& done);
void
- afterCreateFaceFailure(const std::string& reason,
+ afterCreateFaceFailure(uint32_t status,
+ const std::string& reason,
const ndn::mgmt::CommandContinuation& done);
Face*