Commit 379579be authored by Lubos Slovak's avatar Lubos Slovak

public-libs: Moved mempatten to common.

parent 5f1f66cf
......@@ -61,6 +61,8 @@ src/common/log.c
src/common/log.h
src/common/mem.c
src/common/mem.h
src/common/mempattern.c
src/common/mempattern.h
src/common/mempool.c
src/common/mempool.h
src/common/print.c
......@@ -223,8 +225,6 @@ 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/net.c
......
......@@ -104,6 +104,8 @@ libknotcs_la_SOURCES = \
common/getline.h \
common/mem.c \
common/mem.h \
common/mempattern.c \
common/mempattern.h \
common/mempool.c \
common/mempool.h \
common/hhash.c \
......@@ -165,8 +167,6 @@ libknot_la_SOURCES = \
libknot/errcode.c \
libknot/errcode.h \
libknot/libknot.h \
libknot/mempattern.c \
libknot/mempattern.h \
libknot/packet/compr.c \
libknot/packet/compr.h \
libknot/packet/pkt.c \
......
......@@ -29,7 +29,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include "libknot/mempattern.h"
#include "common/mempattern.h"
/*! \brief Bitvector type. */
typedef unsigned hhbitvec_t;
......
......@@ -83,7 +83,7 @@ void list_dup(list_t *dst, list_t *src, size_t itemsz);
size_t list_size(const list_t *);
#include <stdbool.h>
#include "libknot/mempattern.h"
#include "common/mempattern.h"
/*!
* \brief Generic pointer list implementation.
*/
......
......@@ -16,7 +16,7 @@
#include <stdlib.h>
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "common/mempool.h"
#include "libknot/common.h"
......
......@@ -13,7 +13,7 @@
#include "common/mem.h"
#include "common/mempool.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include <string.h>
#include <stdlib.h>
......
......@@ -24,7 +24,7 @@ extern "C" {
#include <stdlib.h>
#include <stdbool.h>
#include "libknot/common.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "common/hhash.h"
/* Hat-trie defines. */
......
#include "knot/nameserver/query_module.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "libknot/errcode.h"
#include "common/strlcpy.h"
......
......@@ -41,7 +41,7 @@
#pragma once
#include "common/lists.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "libknot/consts.h"
#include "libknot/packet/pkt.h"
......
......@@ -37,7 +37,7 @@
#endif /* HAVE_CAP_NG_H */
#include "common/sockaddr.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "common/mempool.h"
#include "knot/knot.h"
#include "knot/server/udp-handler.h"
......
......@@ -31,7 +31,7 @@
#include "common/lists.h"
#include "common/sockaddr.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "libknot/rrtype/tsig.h"
struct conf_iface_t;
......
......@@ -25,7 +25,7 @@
#include "libknot/common.h"
#include "libknot/consts.h"
#include "libknot/rrtype/soa.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "libknot/descriptor.h"
#include "common/lists.h"
......
......@@ -28,7 +28,7 @@
#include "knot/updates/changesets.h"
#include "knot/zone/contents.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
/*! \brief Structure for zone contents updating / querying \todo to be moved to new ZONE API */
typedef struct {
......
......@@ -23,7 +23,7 @@
#include "libknot/rdataset.h"
#include "libknot/rrtype/rrsig.h"
#include "libknot/descriptor.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
/*! \brief Clears allocated data in RRSet entry. */
static void rr_data_clear(struct rr_data *data, knot_mm_ctx_t *mm)
......
......@@ -33,7 +33,7 @@
#include "common/base32hex.h"
#include "common-knot/crc.h"
#include "libknot/descriptor.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "knot/dnssec/zone-nsec.h"
#include "knot/zone/semantic-check.h"
......
......@@ -28,7 +28,7 @@
#include "libknot/packet/wire.h"
#include "knot/zone/node.h"
#include "common/debug.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "common/mempool.h"
......
......@@ -22,7 +22,7 @@
#include <inttypes.h>
#include "libknot/common.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "libknot/dname.h"
#include "libknot/consts.h"
#include "libknot/util/tolower.h"
......
......@@ -31,7 +31,7 @@
#include <stdio.h>
#include <stdbool.h>
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "libknot/consts.h"
typedef uint8_t knot_dname_t;
......
......@@ -30,7 +30,7 @@
#include "libknot/dname.h"
#include "libknot/descriptor.h"
#include "libknot/errcode.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "libknot/rrtype/opt.h"
#include "libknot/packet/wire.h"
#include "libknot/packet/compr.h"
......
......@@ -34,7 +34,7 @@
#include "libknot/rrtype/opt.h"
#include "libknot/packet/wire.h"
#include "libknot/packet/compr.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
/* Number of packet sections (ANSWER, AUTHORITY, ADDITIONAL). */
#define KNOT_PKT_SECTIONS 3
......
......@@ -30,7 +30,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "libknot/dname.h"
#include "libknot/rrset.h"
......
......@@ -26,7 +26,7 @@
#include <stdint.h>
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "libknot/consts.h"
#include "libknot/rrtype/tsig.h"
#include "libknot/packet/pkt.h"
......
......@@ -18,7 +18,7 @@
#include "common/lists.h"
#include "common/sockaddr.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "libknot/processing/overlay.h"
struct knot_request;
......
......@@ -30,7 +30,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "libknot/mempattern.h"
#include "common/mempattern.h"
/* ---------------------------- Single RR ----------------------------------- */
......
......@@ -30,7 +30,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "libknot/rdata.h"
/*!< \brief Set of RRs. */
......
......@@ -22,7 +22,7 @@
#include "libknot/consts.h"
#include "libknot/common.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "libknot/descriptor.h"
#include "libknot/dname.h"
......
......@@ -30,7 +30,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "libknot/dname.h"
#include "libknot/rdataset.h"
......
......@@ -28,7 +28,7 @@
#include "libknot/libknot.h"
#include "libknot/errcode.h" // KNOT_EOK
#include "libknot/mempattern.h" // strcdup
#include "common/mempattern.h" // strcdup
#include "libknot/descriptor.h" // KNOT_RRTYPE_
#include "common/strlcpy.h" // strlcpy
#include "utils/common/msg.h" // WARN
......
......@@ -25,7 +25,7 @@
#include "utils/common/netio.h"
#include "libknot/errcode.h"
#include "libknot/descriptor.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "common/mempool.h"
#include "libknot/libknot.h"
......
#pragma once
#include "knot/server/server.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
/* Some domain names. */
#define ROOT_DNAME ((const uint8_t *)"")
......
......@@ -19,7 +19,7 @@
#include <tap/basic.h>
#include "common/hhash.h"
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "common/mempool.h"
#include "libknot/common.h"
......
......@@ -18,7 +18,7 @@
#include <string.h>
#include <stdlib.h>
#include "libknot/mempattern.h"
#include "common/mempattern.h"
#include "common/mempool.h"
#include "libknot/errcode.h"
#include "knot/nameserver/query_module.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