Commit 156c6ff7 authored by Daniel Salzman's avatar Daniel Salzman

knot: remove knot.h

parent a4341dd4
......@@ -43,6 +43,7 @@ src/knot/common/fdset.c
src/knot/common/fdset.h
src/knot/common/ref.c
src/knot/common/ref.h
src/knot/common/time.h
src/knot/common/trim.h
src/knot/conf/cf-lex.l
src/knot/conf/cf-parse.y
......@@ -71,7 +72,6 @@ src/knot/dnssec/zone-nsec.c
src/knot/dnssec/zone-nsec.h
src/knot/dnssec/zone-sign.c
src/knot/dnssec/zone-sign.h
src/knot/knot.h
src/knot/main.c
src/knot/modules/dnstap.c
src/knot/modules/dnstap.h
......@@ -288,20 +288,20 @@ src/utils/common/resolv.h
src/utils/common/strtonum.h
src/utils/common/token.c
src/utils/common/token.h
src/utils/dig/dig_exec.c
src/utils/dig/dig_exec.h
src/utils/dig/dig_main.c
src/utils/dig/dig_params.c
src/utils/dig/dig_params.h
src/utils/host/host_main.c
src/utils/host/host_params.c
src/utils/host/host_params.h
src/utils/nsec3hash/nsec3hash_main.c
src/utils/nsupdate/nsupdate_exec.c
src/utils/nsupdate/nsupdate_exec.h
src/utils/nsupdate/nsupdate_main.c
src/utils/nsupdate/nsupdate_params.c
src/utils/nsupdate/nsupdate_params.h
src/utils/kdig/kdig_exec.c
src/utils/kdig/kdig_exec.h
src/utils/kdig/kdig_main.c
src/utils/kdig/kdig_params.c
src/utils/kdig/kdig_params.h
src/utils/khost/khost_main.c
src/utils/khost/khost_params.c
src/utils/khost/khost_params.h
src/utils/knsec3hash/knsec3hash_main.c
src/utils/knsupdate/knsupdate_exec.c
src/utils/knsupdate/knsupdate_exec.h
src/utils/knsupdate/knsupdate_main.c
src/utils/knsupdate/knsupdate_params.c
src/utils/knsupdate/knsupdate_params.h
src/zscanner/Makefile.am
src/zscanner/error.c
src/zscanner/error.h
......
......@@ -233,7 +233,6 @@ libknotd_la_SOURCES = \
knot/dnssec/zone-nsec.h \
knot/dnssec/zone-sign.c \
knot/dnssec/zone-sign.h \
knot/knot.h \
knot/modules/synth_record.c \
knot/modules/synth_record.h \
knot/nameserver/axfr.c \
......@@ -268,6 +267,7 @@ libknotd_la_SOURCES = \
knot/common/fdset.h \
knot/common/ref.c \
knot/common/ref.h \
knot/common/time.h \
knot/common/trim.h \
knot/server/dthreads.c \
knot/server/dthreads.h \
......
/* Copyright (C) 2011 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
/* 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
it under the terms of the GNU General Public License as published by
......@@ -14,11 +14,11 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*!
* \file knot.h
* \file time.h
*
* \author Lubos Slovak <lubos.slovak@nic.cz>
*
* \brief Common macros, includes and utilities.
* \brief Universal time getter.
*
* \addtogroup server
* @{
......@@ -26,23 +26,12 @@
#pragma once
#include <signal.h>
#include <stdint.h>
#include "libknot/internal/print.h"
#include "libknot/internal/log.h"
#include "libknot/errcode.h"
#include "knot/common/debug.h"
#define DEFAULT_THR_COUNT 2 /*!< \brief Default thread count. */
#define TCP_BACKLOG_SIZE 10 /*!< \brief TCP listen backlog size. */
#define RECVMMSG_BATCHLEN 10 /*!< \brief Define for recvmmsg() batch size. */
/* Workarounds for clock_gettime() not available on some platforms. */
#ifdef HAVE_CLOCK_GETTIME
#include <time.h>
#define time_now(x) clock_gettime(CLOCK_MONOTONIC, (x))
typedef struct timespec timev_t;
#elif HAVE_GETTIMEOFDAY
#include <sys/time.h>
#define time_now(x) gettimeofday((x), NULL)
typedef struct timeval timev_t;
#else
......
......@@ -31,7 +31,6 @@
#include "libknot/internal/macros.h"
#include "knot/conf/conf.h"
#include "knot/conf/extra.h"
#include "knot/knot.h"
#include "knot/ctl/remote.h"
#include "knot/nameserver/internet.h"
......
......@@ -25,18 +25,17 @@
#include <sys/stat.h>
#endif
#include "knot/knot.h"
#include "libknot/internal/mem.h"
#include "libknot/internal/macros.h"
#include "libknot/descriptor.h"
#include "libknot/libknot.h"
#include "knot/common/debug.h"
#include "knot/ctl/estimator.h"
#include "knot/ctl/process.h"
#include "knot/ctl/remote.h"
#include "knot/conf/conf.h"
#include "knot/server/tcp-handler.h"
#include "knot/zone/zonefile.h"
#include "knot/zone/zone-load.h"
#include "knot/server/tcp-handler.h"
#include "libknot/packet/wire.h"
#include "knot/ctl/estimator.h"
/*! \brief Controller flags. */
enum knotc_flag_t {
......
......@@ -30,7 +30,6 @@
#include <pwd.h>
#include "libknot/internal/mem.h"
#include "knot/knot.h"
#include "knot/ctl/process.h"
#include "knot/conf/conf.h"
......
......@@ -16,26 +16,21 @@
#include <assert.h>
#include <sys/stat.h>
#include "knot/common/debug.h"
#include "knot/common/fdset.h"
#include "knot/conf/conf.h"
#include "knot/ctl/remote.h"
#include "knot/dnssec/zone-sign.h"
#include "knot/dnssec/zone-nsec.h"
#include "knot/server/tcp-handler.h"
#include "knot/zone/timers.h"
#include "libknot/libknot.h"
#include "libknot/internal/log.h"
#include "libknot/internal/mem.h"
#include "libknot/internal/macros.h"
#include "knot/common/fdset.h"
#include "knot/knot.h"
#include "knot/conf/conf.h"
#include "libknot/internal/mem.h"
#include "libknot/internal/net.h"
#include "knot/server/tcp-handler.h"
#include "libknot/packet/wire.h"
#include "libknot/descriptor.h"
#include "libknot/internal/strlcpy.h"
#include "libknot/tsig-op.h"
#include "libknot/rrtype/rdname.h"
#include "libknot/rrtype/soa.h"
#include "libknot/dnssec/random.h"
#include "libknot/packet/wire.h"
#include "knot/zone/timers.h"
#include "knot/dnssec/zone-sign.h"
#include "knot/dnssec/zone-nsec.h"
#define KNOT_CTL_REALM "knot."
#define KNOT_CTL_REALM_EXT ("." KNOT_CTL_REALM)
......
......@@ -29,14 +29,13 @@
#include <systemd/sd-daemon.h>
#endif
#include "libknot/dnssec/crypto.h"
#include "knot/knot.h"
#include "knot/server/server.h"
#include "knot/ctl/process.h"
#include "knot/ctl/remote.h"
#include "knot/conf/conf.h"
#include "knot/zone/timers.h"
#include "knot/server/server.h"
#include "knot/server/tcp-handler.h"
#include "knot/zone/timers.h"
#include "libknot/dnssec/crypto.h"
/* Signal flags. */
static volatile short sig_req_stop = 0;
......
......@@ -29,8 +29,9 @@
#include <pthread_np.h>
#endif /* HAVE_PTHREAD_NP_H */
#include "knot/knot.h"
#include "knot/common/debug.h"
#include "knot/server/dthreads.h"
#include "libknot/libknot.h"
#include "libknot/internal/log.h"
/* BSD cpu set compatibility. */
......
......@@ -40,6 +40,8 @@
#include <pthread.h>
#define DEFAULT_THR_COUNT 2 /*!< Default thread count. */
/* Forward decls */
struct dthread;
struct dt_unit;
......@@ -54,7 +56,6 @@ typedef enum {
ThreadDead = 1 << 3, /*!< Thread is finished, exiting. */
ThreadIdle = 1 << 4, /*!< Thread is idle, waiting for purpose. */
ThreadActive = 1 << 5 /*!< Thread is active, working on a task. */
} dt_state_t;
/*!
......
......@@ -20,15 +20,13 @@
#include <sys/socket.h>
#include <assert.h>
#include "knot/common/debug.h"
#include "knot/server/rrl.h"
#include "knot/knot.h"
#include "libknot/consts.h"
#include "libknot/packet/wire.h"
#include "libknot/internal/trie/murmurhash3.h"
#include "knot/zone/zone.h"
#include "libknot/libknot.h"
#include "libknot/dnssec/random.h"
#include "libknot/descriptor.h"
#include "libknot/internal/trie/murmurhash3.h"
#include "libknot/internal/errors.h"
#include "knot/zone/zone.h"
/* Hopscotch defines. */
#define HOP_LEN (sizeof(unsigned)*8)
......
......@@ -21,8 +21,8 @@
#include <errno.h>
#include <assert.h>
#include "knot/common/debug.h"
#include "knot/common/trim.h"
#include "knot/knot.h"
#include "knot/server/server.h"
#include "knot/server/udp-handler.h"
#include "knot/server/tcp-handler.h"
......@@ -30,7 +30,7 @@
#include "knot/worker/pool.h"
#include "knot/zone/timers.h"
#include "knot/zone/zonedb-load.h"
#include "libknot/dname.h"
#include "libknot/libknot.h"
#include "libknot/dnssec/crypto.h"
#include "libknot/dnssec/random.h"
......
......@@ -31,21 +31,19 @@
#include <cap-ng.h>
#endif /* HAVE_CAP_NG_H */
#include "libknot/internal/sockaddr.h"
#include "knot/server/tcp-handler.h"
#include "knot/common/debug.h"
#include "knot/common/fdset.h"
#include "knot/common/time.h"
#include "knot/nameserver/process_query.h"
#include "libknot/internal/mempool.h"
#include "libknot/internal/net.h"
#include "libknot/internal/macros.h"
#include "libknot/packet/wire.h"
#include "libknot/internal/net.h"
#include "libknot/internal/sockaddr.h"
#include "libknot/dnssec/crypto.h"
#include "libknot/dnssec/random.h"
#include "libknot/processing/overlay.h"
#include "knot/knot.h"
#include "knot/server/tcp-handler.h"
#include "knot/nameserver/process_query.h"
/*! \brief TCP context data. */
typedef struct tcp_context {
struct knot_overlay overlay;/*!< Query processing overlay. */
......
......@@ -32,8 +32,8 @@
#include "knot/server/dthreads.h"
/* Constants */
#define TCP_SWEEP_INTERVAL 2 /* [secs] granularity of connection sweeping */
#define TCP_SWEEP_INTERVAL 2 /*!< [secs] granularity of connection sweeping. */
#define TCP_BACKLOG_SIZE 10 /*!< TCP listen backlog size. */
/*!
* \brief Accept a TCP connection.
......
......@@ -40,7 +40,6 @@
#include "libknot/internal/mempattern.h"
#include "libknot/internal/mempool.h"
#include "libknot/internal/macros.h"
#include "knot/knot.h"
#include "knot/server/udp-handler.h"
#include "knot/server/server.h"
#include "libknot/packet/wire.h"
......
......@@ -32,6 +32,8 @@
#include "knot/server/dthreads.h"
#define RECVMMSG_BATCHLEN 10 /*!< Default recvmmsg() batch size. */
/*!
* \brief UDP handler thread runnable.
*
......
......@@ -21,22 +21,15 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include "knot/knot.h"
#include "knot/zone/semantic-check.h"
#include "knot/common/crc.h"
#include "knot/common/debug.h"
#include "knot/dnssec/zone-nsec.h"
#include "libknot/libknot.h"
#include "libknot/dnssec/key.h"
#include "libknot/dnssec/rrset-sign.h"
#include "libknot/rrtype/rrsig.h"
#include "libknot/rrtype/soa.h"
#include "libknot/rrtype/nsec.h"
#include "libknot/rrtype/nsec3.h"
#include "libknot/internal/base32hex.h"
#include "knot/common/crc.h"
#include "libknot/descriptor.h"
#include "libknot/internal/mempattern.h"
#include "knot/dnssec/zone-nsec.h"
#include "knot/zone/semantic-check.h"
static char *error_messages[(-ZC_ERR_UNKNOWN) + 1] = {
[-ZC_ERR_MISSING_SOA] =
......
......@@ -22,7 +22,6 @@
#include <tap/basic.h>
#include "knot/server/journal.h"
#include "knot/knot.h"
/*! \brief Generate random string with given length. */
static int randstr(char* dst, size_t len)
......
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