Commit b0cce6e9 authored by Daniel Salzman's avatar Daniel Salzman

knot: includes cleanup

parent faac5355
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "knot/modules/dnsproxy.h" #include "knot/modules/dnsproxy.h"
#include "knot/nameserver/capture.h" #include "knot/nameserver/capture.h"
#include "knot/nameserver/process_query.h" #include "knot/nameserver/process_query.h"
#include "contrib/mempattern.h"
#include "contrib/net.h" #include "contrib/net.h"
/* Module configuration scheme. */ /* Module configuration scheme. */
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "knot/modules/rosedb.h" #include "knot/modules/rosedb.h"
#include "knot/nameserver/process_query.h" #include "knot/nameserver/process_query.h"
#include "libknot/libknot.h" #include "libknot/libknot.h"
#include "contrib/mempattern.h"
#include "contrib/net.h" #include "contrib/net.h"
#include "contrib/wire.h" #include "contrib/wire.h"
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "knot/nameserver/internet.h" #include "knot/nameserver/internet.h"
#include "knot/common/log.h" #include "knot/common/log.h"
#include "libknot/descriptor.h" #include "libknot/descriptor.h"
#include "contrib/mempattern.h"
#include "contrib/net.h" #include "contrib/net.h"
#include "contrib/sockaddr.h" #include "contrib/sockaddr.h"
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "knot/nameserver/internet.h" #include "knot/nameserver/internet.h"
#include "knot/zone/zonefile.h" #include "knot/zone/zonefile.h"
#include "libknot/libknot.h" #include "libknot/libknot.h"
#include "contrib/mempattern.h"
#include "contrib/print.h" #include "contrib/print.h"
#include "contrib/sockaddr.h" #include "contrib/sockaddr.h"
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "knot/zone/serial.h" #include "knot/zone/serial.h"
#include "knot/zone/zonedb.h" #include "knot/zone/zonedb.h"
#include "libknot/dnssec/rrset-sign.h" #include "libknot/dnssec/rrset-sign.h"
#include "contrib/mempattern.h"
#include "contrib/sockaddr.h" #include "contrib/sockaddr.h"
/*! \brief Check if given node was already visited. */ /*! \brief Check if given node was already visited. */
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "knot/updates/apply.h" #include "knot/updates/apply.h"
#include "knot/zone/serial.h" #include "knot/zone/serial.h"
#include "libknot/libknot.h" #include "libknot/libknot.h"
#include "contrib/mempattern.h"
#include "contrib/print.h" #include "contrib/print.h"
#include "contrib/sockaddr.h" #include "contrib/sockaddr.h"
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "knot/nameserver/internet.h" #include "knot/nameserver/internet.h"
#include "knot/nameserver/ixfr.h" #include "knot/nameserver/ixfr.h"
#include "knot/nameserver/notify.h" #include "knot/nameserver/notify.h"
#include "contrib/mempattern.h"
/*! \brief Accessor to query-specific data. */ /*! \brief Accessor to query-specific data. */
#define ANSWER_DATA(ctx) ((struct answer_data *)(ctx)->data) #define ANSWER_DATA(ctx) ((struct answer_data *)(ctx)->data)
......
...@@ -28,10 +28,9 @@ ...@@ -28,10 +28,9 @@
#include "knot/nameserver/update.h" #include "knot/nameserver/update.h"
#include "knot/nameserver/nsec_proofs.h" #include "knot/nameserver/nsec_proofs.h"
#include "knot/nameserver/notify.h" #include "knot/nameserver/notify.h"
#include "knot/server/rrl.h"
#include "libknot/libknot.h" #include "libknot/libknot.h"
#include "libknot/yparser/yptrafo.h"
#include "contrib/macros.h" #include "contrib/macros.h"
#include "contrib/mempattern.h"
/*! \brief Accessor to query-specific data. */ /*! \brief Accessor to query-specific data. */
#define QUERY_DATA(ctx) ((struct query_data *)(ctx)->data) #define QUERY_DATA(ctx) ((struct query_data *)(ctx)->data)
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include "knot/nameserver/process_query.h" #include "knot/nameserver/process_query.h"
#include "libknot/processing/overlay.h" #include "libknot/processing/overlay.h"
#include "contrib/macros.h" #include "contrib/macros.h"
#include "contrib/mempattern.h"
#include "contrib/net.h" #include "contrib/net.h"
#include "contrib/sockaddr.h" #include "contrib/sockaddr.h"
#include "contrib/time.h" #include "contrib/time.h"
......
/* Copyright (C) 2011 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> /* Copyright (C) 2015 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -15,13 +15,8 @@ ...@@ -15,13 +15,8 @@
*/ */
#include <assert.h> #include <assert.h>
#include <stdbool.h>
#include "knot/updates/acl.h" #include "knot/updates/acl.h"
#include "knot/conf/conf.h"
#include "libknot/libknot.h"
#include "libknot/yparser/yptrafo.h"
#include "contrib/endian.h"
#include "contrib/sockaddr.h" #include "contrib/sockaddr.h"
static const uint8_t* ipv4_addr(const struct sockaddr_storage *ss) { static const uint8_t* ipv4_addr(const struct sockaddr_storage *ss) {
......
/* Copyright (C) 2011 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> /* Copyright (C) 2015 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -24,11 +24,10 @@ ...@@ -24,11 +24,10 @@
#pragma once #pragma once
#include <stdbool.h>
#include <sys/socket.h> #include <sys/socket.h>
#include "contrib/mempattern.h" #include "libknot/tsig.h"
#include "contrib/ucw/lists.h"
#include "libknot/rrtype/tsig.h"
#include "knot/conf/conf.h" #include "knot/conf/conf.h"
/*! \brief ACL actions. */ /*! \brief ACL actions. */
......
/* Copyright (C) 2011 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> /* Copyright (C) 2015 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -16,15 +16,11 @@ ...@@ -16,15 +16,11 @@
#include <assert.h> #include <assert.h>
#include "knot/updates/apply.h"
#include "knot/updates/changesets.h"
#include "knot/zone/zone.h"
#include "knot/zone/zonefile.h"
#include "knot/common/log.h" #include "knot/common/log.h"
#include "knot/updates/apply.h"
#include "libknot/libknot.h" #include "libknot/libknot.h"
#include "contrib/macros.h" #include "contrib/macros.h"
#include "contrib/mempattern.h" #include "contrib/mempattern.h"
#include "contrib/ucw/lists.h"
/* --------------------------- Update cleanup ------------------------------- */ /* --------------------------- Update cleanup ------------------------------- */
......
/*! /* Copyright (C) 2015 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
* \file apply.h
*
* \author Lubos Slovak <lubos.slovak@nic.cz>
* \author Jan Kadlec <jan.kadlec@nic.cz>
*
* \brief Changesets application and update helpers.
*
* \addtogroup xfr
* @{
*/
/* Copyright (C) 2011 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -25,14 +13,20 @@ ...@@ -25,14 +13,20 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*!
* \file
*
* \brief Changesets application and update helpers.
*
* \addtogroup ddns
* @{
*/
#pragma once #pragma once
#include <stdint.h>
#include <string.h>
#include "knot/zone/zone.h" #include "knot/zone/zone.h"
#include "knot/updates/changesets.h" #include "knot/updates/changesets.h"
#include "contrib/ucw/lists.h"
/*! /*!
* \brief Applies changesets *with* zone shallow copy. * \brief Applies changesets *with* zone shallow copy.
......
/* Copyright (C) 2011 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> /* Copyright (C) 2015 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -14,13 +14,12 @@ ...@@ -14,13 +14,12 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <stdlib.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include "knot/updates/changesets.h" #include "knot/updates/changesets.h"
#include "libknot/errcode.h" #include "libknot/libknot.h"
#include "libknot/rrset.h"
#include "contrib/macros.h" #include "contrib/macros.h"
#include "contrib/mempattern.h" #include "contrib/mempattern.h"
......
/*! /* Copyright (C) 2015 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
* \file changesets.h
*
* \author Jan Kadlec <jan.kadlec@nic.cz>
*
* \brief Structure for representing zone change and its API.
*
* \addtogroup server
* @{
*/
/* Copyright (C) 2013 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -23,6 +13,14 @@ ...@@ -23,6 +13,14 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*!
* \file
*
* \brief Structure for representing zone change and its API.
*
* \addtogroup ddns
* @{
*/
#pragma once #pragma once
......
/* Copyright (C) 2011 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> /* Copyright (C) 2015 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -15,19 +15,13 @@ ...@@ -15,19 +15,13 @@
*/ */
#include <assert.h> #include <assert.h>
#include <stdlib.h>
#include <inttypes.h>
#include <urcu.h>
#include "knot/common/log.h" #include "knot/common/log.h"
#include "knot/updates/ddns.h" #include "knot/updates/ddns.h"
#include "knot/updates/changesets.h" #include "knot/updates/changesets.h"
#include "knot/updates/zone-update.h" #include "knot/updates/zone-update.h"
#include "knot/zone/serial.h" #include "knot/zone/serial.h"
#include "libknot/packet/pkt.h" #include "libknot/libknot.h"
#include "libknot/consts.h"
#include "libknot/rrtype/soa.h"
#include "libknot/descriptor.h"
#include "contrib/ucw/lists.h" #include "contrib/ucw/lists.h"
/* ----------------------------- prereq check ------------------------------- */ /* ----------------------------- prereq check ------------------------------- */
......
/*! /* Copyright (C) 2015 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
* \file ddns.h
*
* \author Lubos Slovak <lubos.slovak@nic.cz>
* \author Jan Kadlec <jan.kadlec@nic.cz>
*
* \brief Dynamic updates processing.
*
* \addtogroup ddns
* @{
*/
/* Copyright (C) 2011 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -24,14 +13,20 @@ ...@@ -24,14 +13,20 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*!
* \file
*
* \brief Dynamic updates processing.
*
* \addtogroup ddns
* @{
*/
#pragma once #pragma once
#include "knot/updates/changesets.h"
#include "knot/updates/zone-update.h" #include "knot/updates/zone-update.h"
#include "knot/zone/zone.h" #include "knot/zone/zone.h"
#include "libknot/packet/pkt.h" #include "libknot/packet/pkt.h"
#include "libknot/dname.h"
/*! /*!
* \brief Checks update prerequisite section. * \brief Checks update prerequisite section.
......
/* Copyright (C) 2014 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> /* Copyright (C) 2015 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -14,11 +14,10 @@ ...@@ -14,11 +14,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "knot/updates/zone-update.h"
#include "knot/common/log.h" #include "knot/common/log.h"
#include "knot/dnssec/zone-events.h" #include "knot/dnssec/zone-events.h"
#include "knot/updates/apply.h" #include "knot/updates/apply.h"
#include "knot/updates/zone-update.h"
#include "knot/zone/serial.h" #include "knot/zone/serial.h"
#include "contrib/mempattern.h" #include "contrib/mempattern.h"
#include "contrib/ucw/lists.h" #include "contrib/ucw/lists.h"
......
/*! /* Copyright (C) 2015 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
* \file zone-update.h
*
* \author Jan Kadlec <jan.kadlec@nic.cz>
*
* \brief API for quering zone that is being updated.
*
* \addtogroup server
* @{
*/
/* Copyright (C) 2014 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -23,6 +13,14 @@ ...@@ -23,6 +13,14 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*!
* \file
*
* \brief API for quering zone that is being updated.
*
* \addtogroup ddns
* @{
*/
#pragma once #pragma once
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "dnssec/random.h" #include "dnssec/random.h"
#include "libknot/libknot.h" #include "libknot/libknot.h"
#include "libknot/yparser/yptrafo.h" #include "libknot/yparser/yptrafo.h"
#include "contrib/mempattern.h"
#include "contrib/trim.h" #include "contrib/trim.h"
#include "contrib/ucw/mempool.h" #include "contrib/ucw/mempool.h"
#include "contrib/wire.h" #include "contrib/wire.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment