fw: FaceTable::get returns Face* instead of shared_ptr
refs #3205
Change-Id: I1c61493382fe065389266ff3519ab2b265fe4f79
diff --git a/daemon/mgmt/fib-manager.hpp b/daemon/mgmt/fib-manager.hpp
index 94300cb..9599a01 100644
--- a/daemon/mgmt/fib-manager.hpp
+++ b/daemon/mgmt/fib-manager.hpp
@@ -33,6 +33,8 @@
namespace nfd {
+class FaceTable;
+
/**
* @brief implement the FIB Management of NFD Management Protocol.
* @sa http://redmine.named-data.net/projects/nfd/wiki/FibMgmt
@@ -44,12 +46,12 @@
* @brief construct a FibManger
*
* @param fib the managed FIB
- * @param getFace a function used to retrive a face by FaceId from the face table
+ * @param faceTable FaceTable for querying available faces
* @param dispatcher the management dispatcher
* @param validator the command validator
*/
FibManager(Fib& fib,
- function<shared_ptr<Face>(FaceId)> getFace,
+ const FaceTable& faceTable,
Dispatcher& dispatcher,
CommandValidator& validator);
@@ -74,7 +76,7 @@
private:
Fib& m_fib;
- function<shared_ptr<Face>(FaceId)> m_getFace;
+ const FaceTable& m_faceTable;
};
} // namespace nfd