face+mgmt: enable local fields through ProtocolFactory::createFace
refs #3731
Change-Id: I569dae59cda150ffcb1c0ff1d01a575d8850beca
diff --git a/daemon/face/protocol-factory.hpp b/daemon/face/protocol-factory.hpp
index 6af5bb8..ee19063 100644
--- a/daemon/face/protocol-factory.hpp
+++ b/daemon/face/protocol-factory.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2015, Regents of the University of California,
+ * Copyright (c) 2014-2016, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -55,14 +55,20 @@
* This method should automatically choose channel, based on supplied FaceUri
* and create face.
*
- * \throw Error Factory does not support connect operation
- * \throw Error specified \p persistency is not supported
+ * \param uri remote URI of the new face
+ * \param persistency persistency of the new face
+ * \param wantLocalFieldsEnabled whether local fields should be enabled on the face
+ * \param onCreated callback if face creation succeeds
+ * If a face with the same remote URI already exists, its persistency and
+ * LocalFieldsEnabled setting will not be modified.
+ * \param onFailure callback if face creation fails
*/
virtual void
createFace(const FaceUri& uri,
ndn::nfd::FacePersistency persistency,
+ bool wantLocalFieldsEnabled,
const FaceCreatedCallback& onCreated,
- const FaceCreationFailedCallback& onConnectFailed) = 0;
+ const FaceCreationFailedCallback& onFailure) = 0;
virtual std::vector<shared_ptr<const Channel>>
getChannels() const = 0;