BIND 10 trac2207, updated. c887cb05e27289bf5a80130c1a196dbbc1903234 [2207] Definition of the local zone updater
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Oct 10 11:45:12 UTC 2012
The branch, trac2207 has been updated
via c887cb05e27289bf5a80130c1a196dbbc1903234 (commit)
from b59e1eb450e7f4630ee4ee8e67b7dbb3cf6092de (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c887cb05e27289bf5a80130c1a196dbbc1903234
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Wed Oct 10 13:44:53 2012 +0200
[2207] Definition of the local zone updater
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/memory/zone_updater.h | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/zone_updater.h b/src/lib/datasrc/memory/zone_updater.h
index 7bf33e6..2b97d97 100644
--- a/src/lib/datasrc/memory/zone_updater.h
+++ b/src/lib/datasrc/memory/zone_updater.h
@@ -12,10 +12,16 @@
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
+#include <boost/function.hpp>
+
namespace isc {
namespace datasrc {
namespace memory {
+// Forward declarations
+class ZoneData;
+class ZoneTableSegment;
+
/// \brief Does an update to a zone.
///
/// This abstract base class represents the work of a reload of a zone.
@@ -70,6 +76,26 @@ public:
virtual void cleanup() = 0;
};
+// TODO: Fully define this. It is supposed to be passed to the install_action
+// callback, but what does it actually represent? Is it the actuall zone data
+// there?
+class ZoneSegment {};
+// TODO: Somehow specify what the ID is
+class ZoneSegmentID {};
+
+typedef boost::function<void(ZoneData*)> LoadAction;
+typedef boost::function<ZoneData* (ZoneSegmentID, ZoneSegment*)> InstallAction;
+
+class ZoneUpdaterLocal : public ZoneUpdater {
+public:
+ ZoneUpdaterLocal(ZoneTableSegment* segment, const LoadAction& load_action,
+ const InstallAction& install_action);
+ ~ ZoneUpdaterLocal();
+ virtual void load();
+ virtual void install();
+ virtual void cleanup();
+};
+
}
}
}
More information about the bind10-changes
mailing list