]> granicus.if.org Git - pdns/commitdiff
introduce new setMaster/setKind functions
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Fri, 27 Sep 2013 12:55:40 +0000 (14:55 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Fri, 27 Sep 2013 16:05:44 +0000 (18:05 +0200)
pdns/dnsbackend.hh

index f6795ce1e8b58649e22f3f98b181ebfdf91ec3c2..a95a9f6b86fad2518eb0b92f91e44b39cc47abee 100644 (file)
@@ -281,6 +281,18 @@ public:
   {
   }
 
+  //! Called when the Master of a domain should be changed
+  virtual bool setMaster(const string &domain, const string &ip)
+  {
+    return false;
+  }
+
+  //! Called when the Kind of a domain should be changed (master -> native and similar)
+  virtual bool setKind(const string &domain, const DomainInfo::DomainKind kind)
+  {
+    return false;
+  }
+
   //! Can be called to seed the getArg() function with a prefix
   void setArgPrefix(const string &prefix);