Commit 31e5ab1b authored by Jan Včelák's avatar Jan Včelák 🚀

libknot: move debug.h into common

closes #204
parent 2dd997bd
......@@ -65,6 +65,7 @@ libknots_la_SOURCES = \
common/base64.h \
common/binsearch.h \
common/crc.h \
common/debug.h \
common/descriptor.c \
common/descriptor.h \
common/errcode.c \
......@@ -174,7 +175,6 @@ libknot_la_SOURCES = \
libknot/tsig-op.h \
libknot/tsig.c \
libknot/tsig.h \
libknot/util/debug.h \
libknot/util/endian.h \
libknot/util/tolower.c \
libknot/util/tolower.h \
......
/*!
* \file libknot/util/debug.h
* \file common/debug.h
*
* \author Jan Kadlec <jan.kadlec.@nic.cz>
* \author Lubos Slovak <lubos.slovak@nic.cz>
......@@ -34,8 +34,6 @@
#include "common/log.h"
#include "common/print.h"
#include "libknot/rrset.h"
#include "libknot/util/utils.h"
/*
* Debug macros
......
......@@ -18,7 +18,7 @@
#include <stdint.h>
#include "libknot/rdata.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "knot/dnssec/nsec-chain.h"
#include "knot/dnssec/zone-sign.h"
#include "knot/dnssec/zone-nsec.h"
......
......@@ -24,7 +24,7 @@
#include "knot/dnssec/zone-keys.h"
#include "knot/dnssec/zone-nsec.h"
#include "knot/dnssec/zone-sign.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "knot/zone/zone.h"
static int init_dnssec_structs(const knot_zone_contents_t *zone,
......
......@@ -28,7 +28,7 @@
#include "libknot/dnssec/sign.h"
#include "knot/dnssec/zone-keys.h"
#include "libknot/rdata.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
/*!
* \brief Free DNSSEC signing context for each key.
......
......@@ -31,7 +31,7 @@
#include "knot/dnssec/zone-nsec.h"
#include "knot/dnssec/zone-sign.h"
#include "libknot/rdata.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "libknot/util/utils.h"
#include "libknot/packet/wire.h"
#include "knot/zone/zone-contents.h"
......
......@@ -34,7 +34,7 @@
#include "libknot/rdata.h"
#include "libknot/rrset.h"
#include "knot/updates/changesets.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "knot/zone/node.h"
#include "knot/zone/zone-contents.h"
......
......@@ -19,7 +19,7 @@
#include "knot/nameserver/axfr.h"
#include "knot/nameserver/internet.h"
#include "knot/nameserver/process_query.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "common/descriptor.h"
#include "common/lists.h"
#include "knot/server/zones.h"
......
......@@ -5,7 +5,7 @@
#include "knot/nameserver/process_query.h"
#include "libknot/common.h"
#include "libknot/rdata.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "common/descriptor.h"
#include "knot/server/zones.h"
......
......@@ -4,7 +4,7 @@
#include "knot/nameserver/axfr.h"
#include "knot/nameserver/internet.h"
#include "knot/nameserver/process_query.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "libknot/rdata.h"
#include "knot/server/zones.h"
#include "common/descriptor.h"
......
......@@ -28,7 +28,7 @@
#include "common/errcode.h"
#include "libknot/common.h"
#include "common/lists.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "libknot/packet/pkt.h"
#include "libknot/consts.h"
#include "common/descriptor.h"
......
......@@ -6,7 +6,7 @@
#include "libknot/common.h"
#include "libknot/rdata.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#define DNSSEC_ENABLED 1
......
......@@ -4,7 +4,7 @@
#include "knot/nameserver/process_query.h"
#include "libknot/consts.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "libknot/common.h"
#include "libknot/tsig-op.h"
#include "common/descriptor.h"
......
......@@ -4,7 +4,7 @@
#include "knot/nameserver/internet.h"
#include "knot/nameserver/process_query.h"
#include "knot/nameserver/name-server.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "knot/dnssec/zone-events.h"
#include "knot/updates/ddns.h"
#include "common/descriptor.h"
......
......@@ -34,7 +34,7 @@
#include "knot/server/server.h"
#include "libknot/rdata.h"
#include "knot/nameserver/internet.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "knot/nameserver/process_query.h"
#include "libknot/dnssec/random.h"
......
......@@ -25,7 +25,7 @@
#include "common/mempattern.h"
#include "common/mempool.h"
#include "libknot/rrset.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "libknot/rdata.h"
static int knot_changeset_rrsets_match(const knot_rrset_t *rrset1,
......
......@@ -22,7 +22,7 @@
#include "knot/updates/ddns.h"
#include "knot/updates/changesets.h"
#include "libknot/rdata.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "libknot/packet/pkt.h"
#include "libknot/common.h"
#include "libknot/consts.h"
......
......@@ -24,7 +24,7 @@
#include "knot/nameserver/name-server.h"
#include "libknot/packet/wire.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "libknot/packet/pkt.h"
#include "libknot/dname.h"
#include "knot/zone/zone.h"
......
......@@ -25,7 +25,7 @@
#include "knot/zone/node.h"
#include "libknot/rrset.h"
#include "common/descriptor.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
/*----------------------------------------------------------------------------*/
/* Non-API functions */
......
......@@ -18,7 +18,7 @@
#include <assert.h>
#include "knot/zone/zone-contents.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "libknot/rrset.h"
#include "common/base32hex.h"
#include "common/descriptor.h"
......
......@@ -19,7 +19,7 @@
#include <stdlib.h>
#include <inttypes.h>
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "common/errcode.h"
#include "knot/zone/zone-diff.h"
#include "knot/nameserver/name-server.h"
......
......@@ -21,7 +21,7 @@
#include "knot/zone/zone-tree.h"
#include "knot/zone/node.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "common/hattrie/hat-trie.h"
/*----------------------------------------------------------------------------*/
......
......@@ -26,7 +26,7 @@
#include "libknot/dname.h"
#include "libknot/packet/wire.h"
#include "knot/zone/node.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "common/mempattern.h"
#include "common/mempool.h"
......
......@@ -27,7 +27,7 @@
#include "libknot/dname.h"
#include "libknot/consts.h"
#include "libknot/util/tolower.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "libknot/util/utils.h"
#include "libknot/packet/wire.h"
......
......@@ -22,7 +22,7 @@
#include "libknot/edns.h"
#include "libknot/common.h"
#include "common/descriptor.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
/*! \brief Various EDNS constatns. */
enum knot_edns_consts {
......
......@@ -18,7 +18,7 @@
#include "common/errcode.h"
#include "libknot/packet/compr.h"
#include "libknot/packet/pkt.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "libknot/util/tolower.h"
/*! \brief Case insensitive label compare for compression. */
......
......@@ -20,7 +20,7 @@
#include <stdbool.h>
#include "libknot/packet/pkt.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "libknot/common.h"
#include "common/descriptor.h"
#include "libknot/packet/wire.h"
......
......@@ -18,7 +18,7 @@
#include <assert.h>
#include "libknot/processing/process.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
/* State -> string translation table. */
#ifdef KNOT_NS_DEBUG
......
......@@ -28,7 +28,7 @@
#include "libknot/rrset.h"
#include "libknot/rrset-dump.h"
#include "common/descriptor.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "libknot/util/utils.h"
#include "libknot/packet/wire.h"
#include "libknot/packet/pkt.h"
......
......@@ -27,7 +27,7 @@
#include "libknot/tsig.h"
#include "libknot/tsig-op.h"
#include "libknot/packet/wire.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "libknot/consts.h"
#include "libknot/dnssec/key.h"
......
......@@ -23,7 +23,7 @@
#include <time.h>
#include "libknot/tsig.h"
#include "libknot/util/debug.h"
#include "common/debug.h"
#include "libknot/common.h"
#include "libknot/util/utils.h"
#include "libknot/rrset.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