tools: rename autoconfig Base to Stage
Also, turn BaseDns into non-member functions.
refs #4158
Change-Id: Id3ab862497a07cc261ed34b2ab116f4014a4c6fa
diff --git a/tools/ndn-autoconfig/guess-from-search-domains.hpp b/tools/ndn-autoconfig/guess-from-search-domains.hpp
index bcfd4c8..a2670ec 100644
--- a/tools/ndn-autoconfig/guess-from-search-domains.hpp
+++ b/tools/ndn-autoconfig/guess-from-search-domains.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
- * Copyright (c) 2014-2016, Regents of the University of California,
+/*
+ * Copyright (c) 2014-2017, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -26,7 +26,7 @@
#ifndef NFD_TOOLS_NDN_AUTOCONFIG_GUESS_FROM_SEARCH_DOMAINS_HPP
#define NFD_TOOLS_NDN_AUTOCONFIG_GUESS_FROM_SEARCH_DOMAINS_HPP
-#include "base-dns.hpp"
+#include "stage.hpp"
namespace ndn {
namespace tools {
@@ -46,17 +46,16 @@
* The DNS server should answer with an SRV record that contains the hostname and UDP port
* number of the NDN router.
*/
-class GuessFromSearchDomains : public BaseDns
+class GuessFromSearchDomains : public Stage
{
public:
/**
* @brief Create stage to guess home router based on DNS query with default suffix
- * @sa Base::Base
*/
GuessFromSearchDomains(Face& face, KeyChain& keyChain,
const NextStageCallback& nextStageOnFailure);
- virtual void
+ void
start() override;
};
@@ -64,4 +63,4 @@
} // namespace tools
} // namespace ndn
-#endif // NFD_TOOLS_NDN_AUTOCONFIG_GUESSING_FROM_SEARCH_DOMAINS_HPP
+#endif // NFD_TOOLS_NDN_AUTOCONFIG_GUESS_FROM_SEARCH_DOMAINS_HPP