Commit f54c7469 authored by Daniel Salzman's avatar Daniel Salzman

contents: reduce includes

parent 7bc26e4e
......@@ -27,6 +27,7 @@
#include "knot/common/log.h"
#include "knot/server/journal.h"
#include "knot/server/serialization.h"
#include "knot/zone/zone.h"
#include "libknot/libknot.h"
#include "libknot/rrtype/soa.h"
......
......@@ -45,7 +45,8 @@
#include <pthread.h>
#include <stdbool.h>
#include "knot/updates/changesets.h"
#include "knot/zone/zone.h"
struct zone;
/*!
* \brief Journal entry flags.
......
......@@ -18,21 +18,10 @@
#include "knot/zone/contents.h"
#include "knot/common/log.h"
#include "libknot/internal/macros.h"
#include "knot/dnssec/zone-nsec.h"
#include "libknot/libknot.h"
#include "libknot/rrset.h"
#include "libknot/internal/base32hex.h"
#include "libknot/descriptor.h"
#include "libknot/internal/trie/hat-trie.h"
#include "knot/dnssec/zone-nsec.h"
#include "knot/dnssec/zone-sign.h"
#include "knot/zone/zone-tree.h"
#include "libknot/packet/wire.h"
#include "libknot/consts.h"
#include "libknot/rrtype/rrsig.h"
#include "libknot/rrtype/nsec3.h"
#include "libknot/rrtype/soa.h"
#include "libknot/rrtype/rdname.h"
#include "libknot/internal/macros.h"
/*----------------------------------------------------------------------------*/
/* Non-API functions */
......
......@@ -14,32 +14,26 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*!
* \file contents.h
* \file
*
* \author Lubos Slovak <lubos.slovak@nic.cz>
* Zone contents structure and API for manipulating it.
*
* \brief Zone contents structure and API for manipulating it.
* \addtogroup knot
*
* \addtogroup libknot
* @{
*/
#pragma once
#include "libknot/internal/lists.h"
#include "libknot/rrtype/nsec3param.h"
#include "knot/zone/node.h"
#include "knot/zone/zone-tree.h"
struct zone;
enum zone_contents_find_dname_result {
ZONE_NAME_FOUND = 1,
ZONE_NAME_NOT_FOUND = 0
ZONE_NAME_NOT_FOUND = 0,
ZONE_NAME_FOUND = 1
};
/*----------------------------------------------------------------------------*/
typedef struct zone_contents {
zone_node_t *apex; /*!< Apex node of the zone (holding SOA) */
......@@ -54,8 +48,6 @@ typedef struct zone_contents {
*/
typedef int (*zone_contents_apply_cb_t)(zone_node_t *node, void *data);
/*----------------------------------------------------------------------------*/
zone_contents_t *zone_contents_new(const knot_dname_t *apex_name);
int zone_contents_add_rr(zone_contents_t *z, const knot_rrset_t *rr, zone_node_t **n);
......@@ -75,7 +67,7 @@ const zone_node_t *zone_contents_find_node(const zone_contents_t *contents,
const knot_dname_t *name);
/*!
* \brief Tries to find domain name in the given zone using AVL tree.
* \brief Tries to find a node by owner in the zone contents.
*
* \param[in] zone Zone to search for the name.
* \param[in] name Domain name to search for.
......
......@@ -24,7 +24,7 @@
#include "libknot/libknot.h"
#include "knot/server/journal.h"
#include "knot/zone/zone-diff.h"
#include "knot/zone/zone.h"
#define RAND_RR_LABEL 16
#define RAND_RR_PAYLOAD 64
......
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