]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add missing include guards 2019/head
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 28 Dec 2014 15:50:08 +0000 (16:50 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 6 Jan 2015 21:52:12 +0000 (22:52 +0100)
15 files changed:
modules/bindbackend/bindbackend2.hh
modules/geobackend/geobackend.hh
modules/geobackend/ippreftree.hh
modules/geoipbackend/geoipbackend.hh
modules/gmysqlbackend/gmysqlbackend.hh
modules/goraclebackend/goraclebackend.hh
modules/gpgsqlbackend/gpgsqlbackend.hh
modules/lmdbbackend/lmdbbackend.hh
modules/oraclebackend/oraclebackend.hh
pdns/backends/gsql/gsqlbackend.hh
pdns/comment.hh
pdns/pkcs11signers.hh
pdns/resolver.hh
pdns/ws-api.hh
pdns/ws-recursor.hh

index 9ced301b998430477af2b3a7d0b29834dda5866b..0eb31104fed36367e51ec7e497b1f94bcba1cf47 100644 (file)
@@ -19,6 +19,9 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
+#ifndef PDNS_BINDBACKEND_HH
+#define PDNS_BINDBACKEND_HH
+
 #include <string>
 #include <map>
 #include <set>
@@ -302,3 +305,5 @@ private:
   void loadConfig(string *status=0);
   static void nukeZoneRecords(BB2DomainInfo *bbd);
 };
+
+#endif /* PDNS_BINDBACKEND_HH */
index 1ae58743849c2ec5506be72fba2d1913a98e0f7c..b135f27456a5e6b50879c55a6ba780d057eebf9a 100644 (file)
@@ -4,7 +4,8 @@
  * 
  *             $Id$
  */
-
+#ifndef PDNS_GEOBACKEND_HH
+#define PDNS_GEOBACKEND_HH
 
 #include <vector>
 #include <map>
@@ -110,3 +111,5 @@ public:
 };
 
 static GeoLoader geoloader;
+
+#endif /* PDNS_GEOBACKEND_HH */
index 4e1bdca5c5c4108ca33a35e73f86d41f18ef927e..6278d687486ab430c1be4483f83e85d7ffd92928 100644 (file)
@@ -4,6 +4,8 @@
  * 
  *         $Id$
  */
+#ifndef PDNS_IPPREFTREE_HH
+#define PDNS_IPPREFTREE_HH
 
 #include <string>
 #include <sys/types.h>
@@ -56,3 +58,5 @@ public:
         
         string reason;
 };
+
+#endif /* PDNS_IPPREFTREE_HH */
index 0bb8560c1f8894d5a061b954b7d30443b7ee220c..4c2e8acdf677a887e6e6f14b3a4443c28d94ff13 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef PDNS_GEOIPBACKEND_HH
+#define PDNS_GEOIPBACKEND_HH
+
 #include "config.h"
 #include "pdns/namespaces.hh"
 
@@ -64,3 +67,5 @@ private:
 
   vector<DNSResourceRecord> d_result;
 };
+
+#endif /* PDNS_GEOIPBACKEND_HH */
index 4fbda4e49aa1d812adfb535da3fad6acc4023b1a..76a09db2fad0c9e93b7e6d50ccbfe65ca6ef5e0d 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef PDNS_GMYSQLBACKEND_HH
+#define PDNS_GMYSQLBACKEND_HH
+
 #include <string>
 #include <map>
 #include "pdns/backends/gsql/gsqlbackend.hh"
@@ -11,3 +14,5 @@ class gMySQLBackend : public GSQLBackend
 public:
   gMySQLBackend(const string &mode, const string &suffix); //!< Makes our connection to the database. Throws an exception if it fails.
 };
+
+#endif /* PDNS_GMYSQLBACKEND_HH */
index d8e9f6309de1fc234d0234561bfef712fe0c1db5..ba98811200bae7842693e0d062253cb33141e664 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef PDNS_GORACLEBACKEND_HH
+#define PDNS_GORACLEBACKEND_HH
+
 #include <string>
 #include <map>
 #include "pdns/backends/gsql/gsqlbackend.hh"
@@ -12,3 +15,5 @@ public:
   gOracleBackend(const string &mode, const string &suffix); //!< Makes our connection to the database. Throws an exception if it fails.
   virtual string sqlEscape(const string &name);
 };
+
+#endif /* PDNS_GORACLEBACKEND_HH */
index b096d94fd317e5cff19d636d03f1997b57b44e58..e15953664b365c76e3b96935e6fe9b08fdc80f2a 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef PDNS_GPGSQLBACKEND_HH
+#define PDNS_GPGSQLBACKEND_HH
+
 #include <string>
 #include <map>
 #include "pdns/backends/gsql/gsqlbackend.hh"
@@ -11,3 +14,5 @@ class gPgSQLBackend : public GSQLBackend
 public:
   gPgSQLBackend(const string &mode, const string &suffix); //!< Makes our connection to the database. Throws an exception if it fails.
 };
+
+#endif /* PDNS_GPGSQLBACKEND_HH */
index 01f6ec82438dd3641eaa29f25e72650683310b25..28c95b0b6e362520780c5ce19c0bf5a2bd2fb2e4 100644 (file)
@@ -2,6 +2,8 @@
  * LMDBBackend - a high performance LMDB based backend for PowerDNS written by
  * Mark Zealey, 2013
  */
+#ifndef PDNS_LMDBBACKEND_HH
+#define PDNS_LMDBBACKEND_HH
 
 #include <lmdb.h>
 #include <pthread.h>
@@ -62,3 +64,5 @@ public:
     bool getAuthZone( string &rev_zone );
     bool getAuthData( SOAData &, DNSPacket *);
 };
+
+#endif /* PDNS_LMDBBACKEND_HH */
index 4119dd912e358264d6d958b3a929100c01f33720..e78e8ba50adb3ebf98f4bee013d736ecc89c5f78 100644 (file)
@@ -1,4 +1,3 @@
-// $Id$
 /*
  * Copyright (c) 2010-2011
  *
@@ -7,6 +6,8 @@
  * Karlsruhe Institute of Technology <http://www.kit.edu/> 
  *
  */
+#ifndef PDNS_ORACLEBACKEND_HH
+#define PDNS_ORACLEBACKEND_HH
 
 #include <string>
 #include <map>
@@ -202,4 +203,4 @@ private:
 
 };
 
-/* vi: set sw=2 et : */
+#endif /* PDNS_ORACLEBACKEND_HH */
index e8acf757d1493caab25186a5add1ee529c175508..165437f142910d8a1aad6f42a5c6d90db7a3f7b7 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef PDNS_GSQLBACKEND_HH
+#define PDNS_GSQLBACKEND_HH
+
 #include <string>
 #include <map>
 #include "ssql.hh"
@@ -166,3 +169,5 @@ private:
 protected:
   bool d_dnssecQueries;
 };
+
+#endif /* PDNS_GSQLBACKEND_HH */
index 1587d8b4986c00fa74e88c008bff9136d7b561b3..bb18fef38213c01ccc89eb6cf07de5048a279979 100644 (file)
@@ -19,7 +19,9 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
-#pragma once
+#ifndef PDNS_COMMENT_HH
+#define PDNS_COMMENT_HH
+
 #include "utility.hh"
 #include "qtype.hh"
 #include <sys/types.h>
@@ -38,3 +40,5 @@ public:
   string account; //!< account last updating this comment
   string content; //!< The actual comment. Example: blah blah
 };
+
+#endif /* PDNS_COMMENT_HH */
index 37850ffeac3b0f36e18897ce3f6e8a9d73597b9f..5fd5356fd460c3b83c851f15418206bbcb856d97 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef PDNS_PKCS11SIGNERS_HH
+#define PDNS_PKCS11SIGNERS_HH
+
 class PKCS11DNSCryptoKeyEngine : public DNSCryptoKeyEngine
 {
   protected:
@@ -48,3 +51,4 @@ class PKCS11DNSCryptoKeyEngine : public DNSCryptoKeyEngine
     static DNSCryptoKeyEngine* maker(unsigned int algorithm);
 };
 
+#endif /* PDNS_PKCS11SIGNERS_HH */
index 28fdb12a1bf3daac1aa2da14ed2388eb66269e9b..0d457dd109843a9984ddee4c25559f3462c9f224 100644 (file)
@@ -19,6 +19,8 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
+#ifndef PDNS_RESOLVER_HH
+#define PDNS_RESOLVER_HH
 
 #include <string>
 #include <vector>
@@ -145,3 +147,4 @@ public:
   }
 };
 
+#endif /* PDNS_RESOLVER_HH */
index 76cfc522fea8229b4e912be2320e2af1fff04642..e8b743138198ee43107cdb6f0da1a98dcb2b6c2b 100644 (file)
@@ -19,6 +19,9 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
+#ifndef PDNS_WSAPI_HH
+#define PDNS_WSAPI_HH
+
 #include <map>
 #include "rapidjson/document.h"
 #include "rapidjson/stringbuffer.h"
@@ -37,3 +40,5 @@ string apiZoneNameToId(const string& name);
 
 // To be provided by product code.
 void productServerStatisticsFetch(std::map<string,string>& out);
+
+#endif /* PDNS_WSAPI_HH */
index 3f2fc845c1bbde52d72161297e321b9bd1f38a86..90c9a362a29d75a0d912b24b0d609362cc841f03 100644 (file)
@@ -19,6 +19,9 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
+#ifndef PDNS_WSRECURSOR_HH
+#define PDNS_WSRECURSOR_HH
+
 #include <boost/utility.hpp> 
 #include "namespaces.hh"
 #include "mplexer.hh"
@@ -68,3 +71,5 @@ public:
 private:
   AsyncWebServer* d_ws;
 };
+
+#endif /* PDNS_WSRECURSOR_HH */