src: Adding retry in case of prefix registration fails
Change-Id: Ia124ab393c665b29f03216903128de98bd68de9d
diff --git a/src/adjacency-list.cpp b/src/adjacency-list.cpp
index 9d026af..f2e0aaf 100644
--- a/src/adjacency-list.cpp
+++ b/src/adjacency-list.cpp
@@ -261,6 +261,20 @@
return 0;
}
+uint64_t
+AdjacencyList::getFaceId(const std::string& faceUri)
+{
+ std::list<Adjacent>::iterator it = std::find_if(m_adjList.begin(),
+ m_adjList.end(),
+ ndn::bind(&Adjacent::compareFaceUri,
+ _1, faceUri));
+ if (it != m_adjList.end()) {
+ return it->getFaceId();
+ }
+
+ return 0;
+}
+
void
AdjacencyList::writeLog()
{