26 #ifndef NFD_TOOLS_NFDC_FACE_ID_FETCHER_HPP
27 #define NFD_TOOLS_NFDC_FACE_ID_FETCHER_HPP
30 #include <ndn-cxx/face.hpp>
31 #include <ndn-cxx/mgmt/nfd/controller.hpp>
32 #include <ndn-cxx/util/face-uri.hpp>
33 #include <ndn-cxx/security/validator-null.hpp>
39 using ndn::util::FaceUri;
56 start(ndn::Face& face,
57 ndn::nfd::Controller& controller,
58 const std::string& input,
60 const SuccessCallback& onSucceed,
61 const FailureCallback& onFail);
65 ndn::nfd::Controller& controller,
67 const SuccessCallback& onSucceed,
68 const FailureCallback& onFail);
71 onQuerySuccess(
const ndn::ConstBufferPtr& data,
72 const FaceUri& canonicalUri);
75 onQueryFailure(uint32_t errorCode,
76 const FaceUri& canonicalUri);
79 onCanonizeSuccess(
const FaceUri& canonicalUri);
82 onCanonizeFailure(
const std::string& reason);
85 startGetFaceId(
const FaceUri& faceUri);
88 startFaceCreate(
const FaceUri& canonicalUri);
91 onFaceCreateError(
const ndn::nfd::ControlResponse& response,
92 const std::string& message);
95 succeed(uint32_t faceId);
98 fail(
const std::string& reason);
102 ndn::nfd::Controller& m_controller;
104 SuccessCallback m_onSucceed;
105 FailureCallback m_onFail;
106 ndn::ValidatorNull m_validator;
113 #endif // NFD_TOOLS_NFDC_FACE_ID_FETCHER_HPP
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...