nfdc: ensure FaceUri is in canonical form
refs #1909
Change-Id: If0560c03f3cafe3cd3a181246a7c185e07ade1ca
diff --git a/tools/nfdc.hpp b/tools/nfdc.hpp
index 3624bb6..84a7fc8 100644
--- a/tools/nfdc.hpp
+++ b/tools/nfdc.hpp
@@ -29,10 +29,10 @@
#include <ndn-cxx/face.hpp>
#include <ndn-cxx/util/time.hpp>
#include <ndn-cxx/management/nfd-controller.hpp>
+#include <ndn-cxx/util/face-uri.hpp>
namespace nfdc {
-
using namespace ndn::nfd;
class Nfdc : boost::noncopyable
@@ -177,6 +177,21 @@
void
onError(uint32_t code, const std::string& error, const std::string& message);
+ void
+ onCanonizeFailure(const std::string& reason);
+
+ void
+ startFaceCreate(const ndn::util::FaceUri& canonicalUri);
+
+ void
+ startFaceDestroy(const ndn::util::FaceUri& canonicalUri);
+
+ void
+ startFibAddNextHop(const ndn::util::FaceUri& canonicalUri);
+
+ void
+ startRibRegisterPrefix(const ndn::util::FaceUri& canonicalUri);
+
public:
const char* m_programName;
@@ -193,6 +208,7 @@
private:
Controller m_controller;
+ boost::asio::io_service& m_ioService;
};
} // namespace nfdc