Commit 57163622 authored by Lubos Slovak's avatar Lubos Slovak

libknot: Divided common to two folders.

- includes not finished yet
parent 6b4663dc
......@@ -24,55 +24,49 @@ man/Makefile.am
patches/Makefile.am
samples/Makefile.am
src/Makefile.am
src/common/array-sort.h
src/common/base32hex.c
src/common/base32hex.h
src/common/base64.c
src/common/base64.h
src/common/binsearch.h
src/common/crc.h
src/common/debug.h
src/common/descriptor.c
src/common/descriptor.h
src/common/errcode.c
src/common/errcode.h
src/common/errors.c
src/common/errors.h
src/common/evsched.c
src/common/evsched.h
src/common/fdset.c
src/common/fdset.h
src/common/getline.c
src/common/getline.h
src/common/hattrie/hat-trie.c
src/common/hattrie/hat-trie.h
src/common/hattrie/murmurhash3.c
src/common/hattrie/murmurhash3.h
src/common/heap.c
src/common/heap.h
src/common/hex.c
src/common/hex.h
src/common/hhash.c
src/common/hhash.h
src/common/lists.c
src/common/lists.h
src/common/log.c
src/common/log.h
src/common/memdup.h
src/common/mempattern.c
src/common/mempattern.h
src/common/mempool.c
src/common/mempool.h
src/common/print.c
src/common/print.h
src/common/ref.c
src/common/ref.h
src/common/slab/alloc-common.h
src/common/slab/slab.c
src/common/slab/slab.h
src/common/sockaddr.c
src/common/sockaddr.h
src/common/strtonum.h
src/common-knot/array-sort.h
src/common-knot/binsearch.h
src/common-knot/crc.h
src/common-knot/errors.c
src/common-knot/errors.h
src/common-knot/evsched.c
src/common-knot/evsched.h
src/common-knot/fdset.c
src/common-knot/fdset.h
src/common-knot/hattrie/hat-trie.c
src/common-knot/hattrie/hat-trie.h
src/common-knot/hattrie/murmurhash3.c
src/common-knot/hattrie/murmurhash3.h
src/common-knot/heap.c
src/common-knot/heap.h
src/common-knot/hex.c
src/common-knot/hex.h
src/common-knot/hhash.c
src/common-knot/hhash.h
src/common-knot/lists.c
src/common-knot/lists.h
src/common-knot/log.c
src/common-knot/log.h
src/common-knot/mempool.c
src/common-knot/mempool.h
src/common-knot/print.c
src/common-knot/print.h
src/common-knot/ref.c
src/common-knot/ref.h
src/common-knot/slab/alloc-common.h
src/common-knot/slab/slab.c
src/common-knot/slab/slab.h
src/common-knot/sockaddr.c
src/common-knot/sockaddr.h
src/common-knot/strtonum.h
src/dnstap/Makefile.am
src/dnstap/convert.c
src/dnstap/convert.h
......@@ -204,6 +198,8 @@ src/libknot/binary.h
src/libknot/common.h
src/libknot/consts.c
src/libknot/consts.h
src/libknot/descriptor.c
src/libknot/descriptor.h
src/libknot/dname.c
src/libknot/dname.h
src/libknot/dnssec/bitmap.h
......@@ -221,7 +217,11 @@ src/libknot/dnssec/sig0.c
src/libknot/dnssec/sig0.h
src/libknot/dnssec/sign.c
src/libknot/dnssec/sign.h
src/libknot/errcode.c
src/libknot/errcode.h
src/libknot/libknot.h
src/libknot/mempattern.c
src/libknot/mempattern.h
src/libknot/packet/compr.c
src/libknot/packet/compr.h
src/libknot/packet/pkt.c
......@@ -257,18 +257,18 @@ src/libknot/util/tolower.c
src/libknot/util/tolower.h
src/libknot/util/utils.c
src/libknot/util/utils.h
src/utils/common/exec.c
src/utils/common/exec.h
src/utils/common/msg.c
src/utils/common/msg.h
src/utils/common/netio.c
src/utils/common/netio.h
src/utils/common/params.c
src/utils/common/params.h
src/utils/common/resolv.c
src/utils/common/resolv.h
src/utils/common/token.c
src/utils/common/token.h
src/utils/common-knot/exec.c
src/utils/common-knot/exec.h
src/utils/common-knot/msg.c
src/utils/common-knot/msg.h
src/utils/common-knot/netio.c
src/utils/common-knot/netio.h
src/utils/common-knot/params.c
src/utils/common-knot/params.h
src/utils/common-knot/resolv.c
src/utils/common-knot/resolv.h
src/utils/common-knot/token.c
src/utils/common-knot/token.h
src/utils/dig/dig_exec.c
src/utils/dig/dig_exec.h
src/utils/dig/dig_main.c
......
......@@ -19,7 +19,7 @@
#include <stdlib.h>
#include "common/errors.h"
#include "common/errcode.h"
#include "libknot/errcode.h"
/*!
* \brief Looks up the given id in the lookup table.
......
......@@ -20,7 +20,7 @@
#include <string.h>
#include <assert.h>
#include "common/errcode.h"
#include "libknot/errcode.h"
#include "common/evsched.h"
/*! \brief Some implementations of timercmp >= are broken, this is for compat.*/
......
......@@ -25,7 +25,7 @@ extern "C" {
#include <stdlib.h>
#include <stdbool.h>
#include "libknot/common.h"
#include "common/mempattern.h"
#include "libknot/mempattern.h"
#include "common/hhash.h"
/* Hat-trie defines. */
......
......@@ -19,7 +19,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "common/errcode.h"
#include "libknot/errcode.h"
/*!
* \brief Convert HEX char to byte.
......
......@@ -4,7 +4,7 @@
#include "common/hhash.h"
#include "common/binsearch.h"
#include "common/errcode.h"
#include "libknot/errcode.h"
#include "common/hattrie/murmurhash3.h"
#include "libknot/common.h"
......
......@@ -30,7 +30,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include "common/mempattern.h"
#include "libknot/mempattern.h"
/*! \brief Bitvector type. */
typedef unsigned hhbitvec_t;
......
......@@ -84,7 +84,7 @@ void list_dup(list_t *dst, list_t *src, size_t itemsz);
size_t list_size(const list_t *);
#include <stdbool.h>
#include "common/mempattern.h"
#include "libknot/mempattern.h"
/*!
* \brief Generic pointer list implementation.
*/
......
......@@ -12,7 +12,7 @@
#undef LOCAL_DEBUG
#include "common/mempool.h"
#include "common/mempattern.h"
#include "libknot/mempattern.h"
#include <string.h>
#include <stdlib.h>
......
......@@ -19,7 +19,7 @@
#include <netdb.h>
#include "common/sockaddr.h"
#include "common/errcode.h"
#include "libknot/errcode.h"
#include "libknot/consts.h"
int sockaddr_len(const struct sockaddr_storage *ss)
......
......@@ -30,7 +30,7 @@
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
#include "common/errcode.h"
#include "libknot/errcode.h"
typedef long long int knot_strtoll_result_t;
typedef unsigned long long int knot_strtoull_result_t;
......
......@@ -15,7 +15,7 @@
*/
#include "common/base32hex.h"
#include "common/errcode.h"
#include "libknot/errcode.h"
#include <stdlib.h> // malloc
#include <stdint.h> // uint8_t
......
......@@ -15,7 +15,7 @@
*/
#include "common/base64.h"
#include "common/errcode.h"
#include "libknot/errcode.h"
#include <stdlib.h> // malloc
#include <stdint.h> // uint8_t
......
......@@ -20,7 +20,7 @@
#include <stdlib.h>
#include <string.h> // memset
#include "common/errcode.h"
#include "libknot/errcode.h"
#include "dnstap/convert.h"
#include "dnstap/message.h"
......
......@@ -19,7 +19,7 @@
#include <stdlib.h> // calloc, free
#include <string.h> // strdup
#include "common/errcode.h"
#include "libknot/errcode.h"
#include "libknot/common.h"
#include "dnstap/dnstap.h"
......
......@@ -19,7 +19,7 @@
#include <stdlib.h> // calloc, free
#include <string.h> // strdup
#include "common/errcode.h"
#include "libknot/errcode.h"
#include "libknot/common.h"
#include "dnstap/dnstap.h"
......
......@@ -26,7 +26,7 @@
#endif
#include "knot/knot.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "knot/ctl/process.h"
#include "knot/ctl/remote.h"
#include "knot/conf/conf.h"
......
......@@ -32,7 +32,7 @@
#include "knot/knot.h"
#include "knot/ctl/process.h"
#include "knot/conf/conf.h"
#include "common/mempattern.h"
#include "libknot/mempattern.h"
char* pid_filename()
{
......
......@@ -23,7 +23,7 @@
#include "knot/server/net.h"
#include "knot/server/tcp-handler.h"
#include "libknot/packet/wire.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "libknot/tsig-op.h"
#include "libknot/rrtype/rdname.h"
#include "libknot/rrtype/soa.h"
......
......@@ -20,8 +20,8 @@
#include <inttypes.h>
#include "common/debug.h"
#include "common/errcode.h"
#include "common/mempattern.h"
#include "libknot/errcode.h"
#include "libknot/mempattern.h"
#include "libknot/common.h"
#include "libknot/dname.h"
#include "libknot/consts.h"
......
......@@ -22,7 +22,7 @@
#include "common/base32hex.h"
#include "common/debug.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "common/hhash.h"
#include "libknot/dnssec/bitmap.h"
#include "libknot/util/utils.h"
......
......@@ -21,8 +21,8 @@
#include <time.h>
#include "common/debug.h"
#include "common/descriptor.h"
#include "common/errcode.h"
#include "libknot/descriptor.h"
#include "libknot/errcode.h"
#include "common/hattrie/hat-trie.h"
#include "libknot/common.h"
#include "libknot/dname.h"
......
......@@ -32,7 +32,7 @@
#include "common/print.h"
#include "common/log.h"
#include "common/errcode.h"
#include "libknot/errcode.h"
#include "knot/other/debug.h"
#define DEFAULT_THR_COUNT 2 /*!< \brief Default thread count. */
......
......@@ -23,7 +23,7 @@
#include "dnstap/writer.h"
#include "dnstap/message.h"
#include "dnstap/dnstap.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
/* Defines. */
#define MODULE_ERR(msg...) log_zone_error("Module 'dnstap': " msg)
......
......@@ -18,7 +18,7 @@
#include "knot/nameserver/query_module.h"
#include "knot/nameserver/process_query.h"
#include "knot/nameserver/internet.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
/* Defines. */
#define ARPA_ZONE_LABELS 2
......
......@@ -21,7 +21,7 @@
#include "knot/updates/apply.h"
#include "knot/zone/zonefile.h"
#include "common/debug.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "common/lists.h"
/* AXFR context. @note aliasing the generic xfr_proc */
......
......@@ -18,7 +18,7 @@
#include "knot/nameserver/chaos.h"
#include "knot/conf/conf.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "libknot/packet/pkt.h"
/*!
......
......@@ -15,7 +15,7 @@
*/
#include "common/debug.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "libknot/common.h"
#include "libknot/rrtype/rdname.h"
#include "libknot/rrtype/soa.h"
......
......@@ -5,7 +5,7 @@
#include "knot/nameserver/process_answer.h"
#include "knot/updates/apply.h"
#include "common/debug.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "libknot/util/utils.h"
#include "libknot/rrtype/soa.h"
......
......@@ -19,7 +19,7 @@
#include "knot/nameserver/notify.h"
#include "libknot/dname.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "libknot/packet/pkt.h"
#include "libknot/rrset.h"
#include "libknot/consts.h"
......
......@@ -14,7 +14,7 @@
#include "knot/updates/acl.h"
#include "knot/conf/conf.h"
#include "libknot/tsig-op.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "common/debug.h"
/* Forward decls. */
......
#include "knot/nameserver/query_module.h"
#include "common/mempattern.h"
#include "common/errcode.h"
#include "libknot/mempattern.h"
#include "libknot/errcode.h"
/* Compiled-in module headers. */
#include "knot/modules/synth_record.h"
......
......@@ -42,7 +42,7 @@
#define _QUERY_MODULE_H
#include "common/lists.h"
#include "common/mempattern.h"
#include "libknot/mempattern.h"
#include "libknot/consts.h"
#include "libknot/packet/pkt.h"
......
......@@ -18,7 +18,7 @@
#include <stdint.h>
#include <stdlib.h>
#include "common/errcode.h"
#include "libknot/errcode.h"
#include "libknot/rrtype/tsig.h"
#include "libknot/tsig-op.h"
#include "knot/nameserver/tsig_ctx.h"
......
......@@ -6,7 +6,7 @@
#include "common/debug.h"
#include "knot/dnssec/zone-events.h"
#include "knot/updates/ddns.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "libknot/tsig-op.h"
#include "knot/zone/zone.h"
#include "knot/zone/events.h"
......
......@@ -26,7 +26,7 @@
#include "libknot/packet/wire.h"
#include "common/hattrie/murmurhash3.h"
#include "libknot/dnssec/random.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "common/errors.h"
#include "knot/zone/zone.h"
......
......@@ -17,7 +17,7 @@
#include <assert.h>
#include "knot/server/serialization.h"
#include "common/errcode.h"
#include "libknot/errcode.h"
static size_t rr_binary_size(const knot_rrset_t *rrset, size_t rdata_pos)
{
......
......@@ -37,7 +37,7 @@
#endif /* HAVE_CAP_NG_H */
#include "common/sockaddr.h"
#include "common/mempattern.h"
#include "libknot/mempattern.h"
#include "common/mempool.h"
#include "knot/knot.h"
#include "knot/server/udp-handler.h"
......
......@@ -29,7 +29,7 @@
#include "knot/zone/zone.h"
#include "knot/zone/zone.h"
#include "knot/zone/zonedb.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
/* Constants */
......
......@@ -22,7 +22,7 @@
#include <limits.h>
#include <stdbool.h>
#include "common/errcode.h"
#include "libknot/errcode.h"
#include "knot/updates/acl.h"
#include "libknot/util/endian.h"
#include "libknot/rrtype/tsig.h"
......
......@@ -32,7 +32,7 @@
#include "common/lists.h"
#include "common/sockaddr.h"
#include "common/mempattern.h"
#include "libknot/mempattern.h"
#include "libknot/rrtype/tsig.h"
struct knot_tsig_key;
......
......@@ -27,7 +27,7 @@
#include "knot/updates/changesets.h"
#include "knot/zone/zonefile.h"
#include "common/lists.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "libknot/util/utils.h"
#include "libknot/rrtype/soa.h"
......
......@@ -20,8 +20,8 @@
#include "knot/updates/changesets.h"
#include "libknot/common.h"
#include "common/descriptor.h"
#include "common/mempattern.h"
#include "libknot/descriptor.h"
#include "libknot/mempattern.h"
#include "common/mempool.h"
#include "libknot/rrset.h"
#include "libknot/rrtype/soa.h"
......
......@@ -30,7 +30,7 @@
#include "libknot/rrset.h"
#include "knot/zone/node.h"
#include "common/lists.h"
#include "common/mempattern.h"
#include "libknot/mempattern.h"
/*----------------------------------------------------------------------------*/
......
......@@ -27,8 +27,8 @@
#include "libknot/common.h"
#include "libknot/consts.h"
#include "libknot/rrtype/soa.h"
#include "common/mempattern.h"
#include "common/descriptor.h"
#include "libknot/mempattern.h"
#include "libknot/descriptor.h"
#include "common/lists.h"
/* ----------------------------- prereq check ------------------------------- */
......
......@@ -21,7 +21,7 @@
#include <stdlib.h>
#include <string.h>
#include "common/errcode.h"
#include "libknot/errcode.h"
#include "knot/server/dthreads.h"
#include "knot/worker/pool.h"
#include "knot/worker/queue.h"
......
......@@ -20,7 +20,7 @@
#include "common/debug.h"
#include "libknot/rrset.h"
#include "common/base32hex.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "common/hattrie/hat-trie.h"
#include "knot/dnssec/zone-nsec.h"
#include "knot/dnssec/zone-sign.h"
......
......@@ -21,7 +21,7 @@
#include "common/lists.h"
#include "knot/zone/node.h"
#include "zscanner/zscanner.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
// Addition constants used for tweaking, mostly malloc overhead
enum estim_consts {
......
......@@ -22,8 +22,8 @@
#include "libknot/rrset.h"
#include "libknot/rdataset.h"
#include "libknot/rrtype/rrsig.h"
#include "common/descriptor.h"
#include "common/mempattern.h"
#include "libknot/descriptor.h"
#include "libknot/mempattern.h"
/*! \brief Clears allocated data in RRSet entry. */
static void rr_data_clear(struct rr_data *data, mm_ctx_t *mm)
......
......@@ -28,7 +28,7 @@
#pragma once
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "libknot/dname.h"
#include "libknot/rrset.h"
#include "libknot/rdataset.h"
......
......@@ -32,8 +32,8 @@
#include "libknot/rrtype/nsec3.h"
#include "common/base32hex.h"
#include "common/crc.h"
#include "common/descriptor.h"
#include "common/mempattern.h"
#include "libknot/descriptor.h"
#include "libknot/mempattern.h"
#include "knot/dnssec/zone-nsec.h"
#include "knot/zone/semantic-check.h"
......
......@@ -19,9 +19,9 @@
#include <inttypes.h>
#include "common/debug.h"
#include "common/errcode.h"
#include "libknot/errcode.h"
#include "knot/zone/zone-diff.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "libknot/util/utils.h"
#include "libknot/rrtype/soa.h"
......
......@@ -17,7 +17,7 @@
#include <inttypes.h>
#include "knot/zone/zone-dump.h"
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "knot/conf/conf.h"
#include "libknot/libknot.h"
#include "knot/dnssec/zone-nsec.h"
......
......@@ -19,7 +19,7 @@
#include <string.h>
#include <sys/stat.h>
#include "common/descriptor.h"
#include "libknot/descriptor.h"
#include "common/evsched.h"
#include "common/lists.h"
#include "knot/zone/node.h"
......
......@@ -28,7 +28,7 @@
#include "libknot/packet/wire.h"
#include "knot/zone/node.h"
#include "common/debug.h"