tools: fix compilation with latest ndn-cxx
Change-Id: Ifded624f3256452be98f288f9193dd26e464cd36
diff --git a/tools/nfdc/execute-command.hpp b/tools/nfdc/execute-command.hpp
index ee11cf4..4b1bf5d 100644
--- a/tools/nfdc/execute-command.hpp
+++ b/tools/nfdc/execute-command.hpp
@@ -38,14 +38,11 @@
namespace nfd::tools::nfdc {
-using ndn::Face;
-using ndn::KeyChain;
using ndn::nfd::ControlParameters;
using ndn::nfd::ControlResponse;
-using ndn::nfd::Controller;
/**
- * \brief Context for command execution
+ * \brief Context for command execution.
*/
class ExecuteContext
{
@@ -61,13 +58,13 @@
/** \return handler for command execution failure
* \param commandName command name used in error message (present continuous tense)
*/
- Controller::CommandFailCallback
+ ndn::nfd::CommandFailureCallback
makeCommandFailureHandler(const std::string& commandName);
/** \return handler for dataset retrieval failure
* \param datasetName dataset name used in error message (noun phrase)
*/
- Controller::DatasetFailCallback
+ ndn::nfd::DatasetFailureCallback
makeDatasetFailureHandler(const std::string& datasetName);
public:
@@ -79,13 +76,13 @@
std::ostream& out; ///< output stream
std::ostream& err; ///< error stream
- Face& face;
- KeyChain& keyChain;
- Controller& controller;
+ ndn::Face& face;
+ ndn::KeyChain& keyChain;
+ ndn::nfd::Controller& controller;
};
/**
- * \brief A function to execute a command
+ * \brief A function to execute a command.
*/
using ExecuteCommand = std::function<void(ExecuteContext&)>;