daemon: add NameServer
Change-Id: I64b82a0e9351bcc15691279470c807399480a474
diff --git a/src/daemon/rrset.hpp b/src/daemon/rrset.hpp
index 69b311b..aaedcfe 100644
--- a/src/daemon/rrset.hpp
+++ b/src/daemon/rrset.hpp
@@ -17,8 +17,8 @@
* NDNS, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef NDNS_RRSET_HPP
-#define NDNS_RRSET_HPP
+#ifndef NDNS_DAEMON_RRSET_HPP
+#define NDNS_DAEMON_RRSET_HPP
#include "zone.hpp"
@@ -36,7 +36,7 @@
{
public:
explicit
- Rrset(Zone* zone = 0);
+ Rrset(Zone* zone = nullptr);
/**
* @brief get the id
@@ -174,11 +174,7 @@
* Note that comparison ignores id, TTL, and Data when comparing RR sets
*/
bool
- operator==(const Rrset& other) const
- {
- return (getZone() == other.getZone() && getLabel() == other.getLabel() &&
- getType() == other.getType() && getVersion() == other.getVersion());
- }
+ operator==(const Rrset& other) const;
/**
* @brief compare two rrset instance
@@ -207,4 +203,4 @@
} // namespace ndns
} // namespace ndn
-#endif // NDNS_RRSET_HPP
+#endif // NDNS_DAEMON_RRSET_HPP