[svn] commit: r3519 - in /branches/trac408/src/lib/nsas: Makefile.am fetchable.h nameserver_entry.h tests/Makefile.am tests/fetchable_unittest.cc zone_entry.h

BIND 10 source code commits bind10-changes at lists.isc.org
Sat Nov 13 20:51:32 UTC 2010


Author: vorner
Date: Sat Nov 13 20:51:32 2010
New Revision: 3519

Log:
Fetchable interface

Added:
    branches/trac408/src/lib/nsas/fetchable.h
    branches/trac408/src/lib/nsas/tests/fetchable_unittest.cc
Modified:
    branches/trac408/src/lib/nsas/Makefile.am
    branches/trac408/src/lib/nsas/nameserver_entry.h
    branches/trac408/src/lib/nsas/tests/Makefile.am
    branches/trac408/src/lib/nsas/zone_entry.h

Modified: branches/trac408/src/lib/nsas/Makefile.am
==============================================================================
--- branches/trac408/src/lib/nsas/Makefile.am (original)
+++ branches/trac408/src/lib/nsas/Makefile.am Sat Nov 13 20:51:32 2010
@@ -20,5 +20,6 @@
 libnsas_la_SOURCES += nsas_entry_compare.h
 libnsas_la_SOURCES += nsas_entry.h
 libnsas_la_SOURCES += zone_entry.cc zone_entry.h
+libnsas_la_SOURCES += fetchable.h
 
 CLEANFILES = *.gcno *.gcda

Modified: branches/trac408/src/lib/nsas/nameserver_entry.h
==============================================================================
--- branches/trac408/src/lib/nsas/nameserver_entry.h (original)
+++ branches/trac408/src/lib/nsas/nameserver_entry.h Sat Nov 13 20:51:32 2010
@@ -29,6 +29,7 @@
 #include "nsas_entry.h"
 #include "hash_key.h"
 #include "lru_list.h"
+#include "fetchable.h"
 
 namespace isc {
 namespace nsas {
@@ -79,7 +80,7 @@
 /// As this object will be stored in the nameserver address store LRU list,
 /// it is derived from the LRU list entry class.
 
-class NameserverEntry : public NsasEntry<NameserverEntry> {
+class NameserverEntry : public NsasEntry<NameserverEntry>, Fetchable {
 public:
     /// List of addresses associated with this nameserver
     typedef std::vector<AddressEntry>   AddressVector;

Modified: branches/trac408/src/lib/nsas/tests/Makefile.am
==============================================================================
--- branches/trac408/src/lib/nsas/tests/Makefile.am (original)
+++ branches/trac408/src/lib/nsas/tests/Makefile.am Sat Nov 13 20:51:32 2010
@@ -29,6 +29,7 @@
 run_unittests_SOURCES += nsas_entry_compare_unittest.cc
 run_unittests_SOURCES += nsas_test_utilities.h 
 run_unittests_SOURCES += zone_entry_unittest.cc
+run_unittests_SOURCES += fetchable_unittest.cc
 
 run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
 run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)

Modified: branches/trac408/src/lib/nsas/zone_entry.h
==============================================================================
--- branches/trac408/src/lib/nsas/zone_entry.h (original)
+++ branches/trac408/src/lib/nsas/zone_entry.h Sat Nov 13 20:51:32 2010
@@ -28,6 +28,7 @@
 #include "hash_key.h"
 #include "nsas_entry.h"
 #include "asiolink.h"
+#include "fetchable.h"
 
 namespace isc {
 namespace nsas {
@@ -44,7 +45,7 @@
 /// complicated, in that the class takes account of triggering fetches for
 /// addresses of nameservers when the address records expire.
 
-class ZoneEntry : public NsasEntry<ZoneEntry> {
+class ZoneEntry : public NsasEntry<ZoneEntry>, Fetchable {
 public:
 
     /// \brief Constructor where no NS records are supplied




More information about the bind10-changes mailing list