mgmt: added FaceManager to create and destroy faces
Change-Id: I5a7ca67faed1bfd850943fe4c93675d84c79ac39
Refs: #1195
diff --git a/daemon/fw/face-table.cpp b/daemon/fw/face-table.cpp
index 6e06438..a3013f6 100644
--- a/daemon/fw/face-table.cpp
+++ b/daemon/fw/face-table.cpp
@@ -17,6 +17,11 @@
{
}
+FaceTable::~FaceTable()
+{
+
+}
+
void
FaceTable::add(shared_ptr<Face> face)
{
@@ -47,4 +52,6 @@
m_forwarder.getFib().removeNextHopFromAllEntries(face);
}
+
+
} // namespace nfd
diff --git a/daemon/fw/face-table.hpp b/daemon/fw/face-table.hpp
index 28a4faa..2415568 100644
--- a/daemon/fw/face-table.hpp
+++ b/daemon/fw/face-table.hpp
@@ -23,13 +23,16 @@
explicit
FaceTable(Forwarder& forwarder);
- void
+ VIRTUAL_WITH_TESTS
+ ~FaceTable();
+
+ VIRTUAL_WITH_TESTS void
add(shared_ptr<Face> face);
- void
+ VIRTUAL_WITH_TESTS void
remove(shared_ptr<Face> face);
- shared_ptr<Face>
+ VIRTUAL_WITH_TESTS shared_ptr<Face>
get(FaceId id) const;
size_t