]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add lib/dns/zone_p.h
authorMichał Kępień <michal@isc.org>
Tue, 13 Mar 2018 13:06:07 +0000 (14:06 +0100)
committerEvan Hunt <each@isc.org>
Thu, 10 May 2018 16:42:13 +0000 (09:42 -0700)
Add a new private header file, lib/dns/zone_p.h, which will hold type
definitions and function prototypes not meant to be exported by libdns,
but required by zone-related unit tests.

(cherry picked from commit c1bc3be80692606c13b4549d3718ad2116718d6c)
(cherry picked from commit 2b0add6d1ab2d4f173b6e37556170e07d6978272)
(cherry picked from commit 536d6dc0c59e28e288bc8a6c90ffb38558d434f3)
(cherry picked from commit 27f777c61a0d81a5bfaf3812d089b34b4e155fb4)

lib/dns/zone.c
lib/dns/zone_p.h [new file with mode: 0644]
util/copyrights

index 208ba9ce3f06b412624e2c3a67dcca2d90c06d1b..e7df1e202713cf1438582222875f4a802200e9dc 100644 (file)
@@ -85,6 +85,8 @@
 
 #include <dst/dst.h>
 
+#include "zone_p.h"
+
 #define ZONE_MAGIC                     ISC_MAGIC('Z', 'O', 'N', 'E')
 #define DNS_ZONE_VALID(zone)           ISC_MAGIC_VALID(zone, ZONE_MAGIC)
 
diff --git a/lib/dns/zone_p.h b/lib/dns/zone_p.h
new file mode 100644 (file)
index 0000000..24329b0
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * See the COPYRIGHT file distributed with this work for additional
+ * information regarding copyright ownership.
+ */
+
+#ifndef DNS_ZONE_P_H
+#define DNS_ZONE_P_H
+
+/*! \file */
+
+/*%
+ *     Types and functions below not be used outside this module and its
+ *     associated unit tests.
+ */
+
+ISC_LANG_BEGINDECLS
+
+ISC_LANG_ENDDECLS
+
+#endif /* DNS_ZONE_P_H */
index 4e073dae70acc22ae4c9795aced05ec394bf461e..ec6cc745e52e082b3022896af80ddf2410d5d6bc 100644 (file)
 ./lib/dns/win32/version.c                      C       1998,1999,2000,2001,2004,2007,2013,2018
 ./lib/dns/xfrin.c                              C       1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2011,2012,2013,2015,2016,2017,2018
 ./lib/dns/zone.c                               C       1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018
+./lib/dns/zone_p.h                             C       2018
 ./lib/dns/zonekey.c                            C       2001,2003,2004,2005,2007,2018
 ./lib/dns/zt.c                                 C       1999,2000,2001,2002,2004,2005,2006,2007,2011,2012,2014,2016,2017,2018
 ./lib/export/Makefile.in                       MAKE    2009,2012,2018