face: ProtocolFactory::createFace with FacePersistency
Change-Id: If02510bd631e9aaa63b3cca89ced31a42e192ded
Refs: #2989
diff --git a/daemon/face/protocol-factory.hpp b/daemon/face/protocol-factory.hpp
index 1c12cc0..49e1a31 100644
--- a/daemon/face/protocol-factory.hpp
+++ b/daemon/face/protocol-factory.hpp
@@ -58,15 +58,17 @@
Error(const std::string& what) : std::runtime_error(what) {}
};
- /** \brief Try to create Face using the supplied Face URI
+ /** \brief Try to create Face using the supplied FaceUri
*
- * This method should automatically choose channel, based on supplied Face URI
+ * This method should automatically choose channel, based on supplied FaceUri
* and create face.
*
- * \throws Factory::Error if Factory does not support connect operation
+ * \throw Error Factory does not support connect operation
+ * \throw Error specified \p persistency is not supported
*/
virtual void
createFace(const FaceUri& uri,
+ ndn::nfd::FacePersistency persistency,
const FaceCreatedCallback& onCreated,
const FaceConnectFailedCallback& onConnectFailed) = 0;