]> granicus.if.org Git - pdns/commitdiff
LUABackend: sync function signatures with DNSBackend
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Tue, 11 Jul 2017 14:08:19 +0000 (16:08 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Tue, 11 Jul 2017 14:09:09 +0000 (16:09 +0200)
modules/luabackend/luabackend.hh
modules/luabackend/master.cc

index 498fee6f5833fc7adbaf9f86e63dff7f3ed0e728..52e26ea96f4ab8a2b317ca5af575a410772d542a 100644 (file)
@@ -58,13 +58,13 @@ public:
     void lookup(const QType &qtype, const DNSName &qname, DNSPacket *p, int domain_id) override;
     bool get(DNSResourceRecord &rr) override;
     //! fills the soadata struct with the SOA details. Returns false if there is no SOA.
-    bool getSOA(const DNSName &name, SOAData &soadata);
+    bool getSOA(const DNSName &name, SOAData &soadata) override;
 
 
 //  MASTER BACKEND
 
-    void getUpdatedMasters(vector<DomainInfo>* domains);
-    void setNotified(int id, uint32_t serial);
+    void getUpdatedMasters(vector<DomainInfo>* domains) override;
+    void setNotified(uint32_t id, uint32_t serial) override;
 
 
 //  SLAVE BACKEND
index 27252955594981361a710673a515d86e42c450f3..9b5293fdd121f666c31b5707cc423be6c21ca1a5 100644 (file)
 #include "pdns/logger.hh"
 #include "pdns/arguments.hh"
 
-/* 
-    virtual void getUpdatedMasters(vector<DomainInfo>* domains);
-    virtual void setNotified(int id, uint32_t serial);
-*/
-
 void LUABackend::getUpdatedMasters(vector<DomainInfo>* domains) {
        
     if (f_lua_getupdatedmasters == 0)
@@ -63,7 +58,7 @@ void LUABackend::getUpdatedMasters(vector<DomainInfo>* domains) {
        L << Logger::Info << backend_name << "(getUpdatedMasters) END" << endl;
 }
 
-void LUABackend::setNotified(int id, uint32_t serial) {
+void LUABackend::setNotified(uint32_t id, uint32_t serial) {
        
     if (f_lua_setnotified == 0)
        return;