Add notification function on zone changed

This commit is contained in:
Miek Gieben 2013-05-09 09:52:16 +02:00
parent a5a709cd2a
commit d18bb64db1
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ type Zone struct {
// The zone's security status, supported values are TypeNone for no DNSSEC,
// TypeNSEC for an NSEC type zone and TypeNSEC3 for an NSEC3 signed zone.
Security int
// If not nil, this function is called after each modification
// current == nil, update != nil -> update RR was added to the zone
// current != nil, update != nil -> update RR is changed from current to update
// current != nil, update == nil -> current RR is removed from the zone
NotifyFunc func(current, update RR)
}
type sortedNames struct {