fw: Added FaceId to Face conversion method

Change-Id: I7b751cd51e138875929e7c680420070be3ce15c7
diff --git a/daemon/fw/forwarder.cpp b/daemon/fw/forwarder.cpp
index d9850df..1ce3b8f 100644
--- a/daemon/fw/forwarder.cpp
+++ b/daemon/fw/forwarder.cpp
@@ -49,6 +49,13 @@
   m_fib.removeNextHopFromAllEntries(face);
 }
 
+shared_ptr<Face>
+Forwarder::getFace(FaceId id)
+{
+  std::map<FaceId, shared_ptr<Face> >::iterator i = m_faces.find(id);
+  return (i == m_faces.end()) ? (shared_ptr<Face>()) : (i->second);
+}
+
 void
 Forwarder::onInterest(Face& face, const Interest& interest)
 {
diff --git a/daemon/fw/forwarder.hpp b/daemon/fw/forwarder.hpp
index 1359737..0ea838b 100644
--- a/daemon/fw/forwarder.hpp
+++ b/daemon/fw/forwarder.hpp
@@ -49,6 +49,9 @@
   Cs&
   getCs();
 
+  shared_ptr<Face>
+  getFace(FaceId id);
+
 private: // pipelines
   /** \brief incoming Interest pipeline
    */
@@ -135,7 +138,6 @@
   return m_cs;
 }
 
-
 } // namespace nfd
 
 #endif // NFD_FW_FORWARDER_HPP