src: Adding retry in case of prefix registration fails

Change-Id: Ia124ab393c665b29f03216903128de98bd68de9d
diff --git a/src/adjacent.hpp b/src/adjacent.hpp
index dd2c2e2..967265f 100644
--- a/src/adjacent.hpp
+++ b/src/adjacent.hpp
@@ -21,6 +21,7 @@
  *
  **/
 #include <string>
+#include <cmath>
 #include <boost/cstdint.hpp>
 #include <ndn-cxx/face.hpp>
 
@@ -69,10 +70,11 @@
     m_connectingFaceUri = cfu;
   }
 
-  double
+  uint64_t
   getLinkCost() const
   {
-    return m_linkCost;
+    uint64_t linkCost = static_cast<uint64_t>(ceil(m_linkCost));
+    return linkCost;
   }
 
   void
@@ -132,6 +134,12 @@
     return m_faceId == faceId;
   }
 
+  inline bool
+  compareFaceUri(std::string& faceUri)
+  {
+    return m_connectingFaceUri == faceUri;
+  }
+
   void
   writeLog();