Commit 6c4599cd authored by Vladimír Čunát's avatar Vladimír Čunát

move files: all cache stuff is in lib/cache/ now

Almost.  A trivial lib/layer/cache.c remains.
I put all lib/generic/*.h into libkres_HEADERS, to be sure.
They rarely change anyway.
parent fa3ba9f6
......@@ -20,8 +20,8 @@
#include <contrib/cleanup.h>
#include <libknot/descriptor.h>
#include "lib/cache.h"
#include "lib/cdb.h"
#include "lib/cache/api.h"
#include "lib/cache/cdb_api.h"
#include "lib/utils.h"
#include "daemon/bindings.h"
#include "daemon/worker.h"
......
......@@ -28,9 +28,9 @@
#include "daemon/bindings.h"
#include "daemon/ffimodule.h"
#include "lib/nsrep.h"
#include "lib/cache.h"
#include "lib/cache/api.h"
#include "lib/defines.h"
#include "lib/cdb_lmdb.h"
#include "lib/cache/cdb_lmdb.h"
#include "lib/dnssec/ta.h"
/** @internal Compatibility wrapper for Lua < 5.2 */
......
......@@ -29,8 +29,8 @@
#include "contrib/ucw/lib.h"
#include "contrib/cleanup.h"
#include "lib/cache.h"
#include "lib/cdb_lmdb.h"
#include "lib/cache/api.h"
#include "lib/cache/cdb_lmdb.h"
#include "lib/defines.h"
#include "lib/utils.h"
......
......@@ -19,7 +19,7 @@
#include <libknot/consts.h>
#include <libknot/rrset.h>
#include <sys/time.h>
#include "lib/cdb.h"
#include "lib/cache/cdb_api.h"
#include "lib/defines.h"
#include "contrib/ucw/config.h" /*uint*/
......
......@@ -25,8 +25,8 @@
#include <lmdb.h>
#include "contrib/cleanup.h"
#include "lib/cdb_lmdb.h"
#include "lib/cache.h"
#include "lib/cache/cdb_lmdb.h"
#include "lib/cache/api.h"
#include "lib/utils.h"
......
......@@ -16,7 +16,7 @@
#pragma once
#include "lib/cdb.h"
#include "lib/cache/cdb_api.h"
#include "lib/defines.h"
KR_EXPORT KR_CONST
......
......@@ -28,7 +28,7 @@
#include <libknot/dname.h>
#include "contrib/cleanup.h"
#include "lib/cdb.h"
#include "lib/cache/cdb_api.h"
#include "lib/resolve.h"
/** Cache entry header
......
......@@ -15,7 +15,7 @@
*/
#include "lib/module.h"
#include "lib/cache.h"
#include "lib/cache/api.h"
/** Module implementation. */
const kr_layer_api_t *cache_layer(struct kr_module *module)
......
libkres_SOURCES := \
lib/generic/lru.c \
lib/generic/map.c \
lib/layer/iterate.c \
lib/layer/validate.c \
lib/layer/cache.c \
lib/dnssec/nsec.c \
lib/dnssec/nsec3.c \
lib/dnssec/signature.c \
lib/dnssec/ta.c \
lib/dnssec.c \
lib/utils.c \
lib/nsrep.c \
lib/module.c \
lib/resolve.c \
lib/zonecut.c \
lib/rplan.c \
lib/cache.c \
lib/cache/api.c \
lib/cache/cdb_lmdb.c \
lib/cache/entry_list.c \
lib/cache/entry_pkt.c \
lib/cache/entry_rr.c \
lib/cache/knot_pkt.c \
lib/cache/nsec1.c \
lib/cdb_lmdb.c
lib/cache/entry_pkt.c \
lib/cache/entry_rr.c \
lib/cache/knot_pkt.c \
lib/cache/nsec1.c \
lib/dnssec.c \
lib/dnssec/nsec.c \
lib/dnssec/nsec3.c \
lib/dnssec/signature.c \
lib/dnssec/ta.c \
lib/generic/lru.c \
lib/generic/map.c \
lib/layer/cache.c \
lib/layer/iterate.c \
lib/layer/validate.c \
lib/module.c \
lib/nsrep.c \
lib/resolve.c \
lib/rplan.c \
lib/utils.c \
lib/zonecut.c
libkres_HEADERS := \
lib/generic/array.h \
lib/generic/lru.h \
lib/generic/map.h \
lib/generic/set.h \
lib/layer.h \
lib/dnssec/nsec.h \
lib/dnssec/nsec3.h \
lib/cache/api.h \
lib/cache/cdb_api.h \
lib/cache/cdb_lmdb.h \
lib/cache/impl.h \
lib/defines.h \
lib/dnssec.h \
lib/dnssec/nsec.h \
lib/dnssec/nsec3.h \
lib/dnssec/signature.h \
lib/dnssec/ta.h \
lib/dnssec.h \
lib/utils.h \
lib/nsrep.h \
lib/module.h \
lib/resolve.h \
lib/zonecut.h \
lib/rplan.h \
lib/cache.h \
lib/cdb.h \
lib/cdb_lmdb.h
lib/dnssec/ta.h \
lib/generic/array.h \
lib/generic/lru.h \
lib/generic/map.h \
lib/generic/pack.h \
lib/generic/set.h \
lib/layer.h \
lib/layer/iterate.h \
lib/module.h \
lib/nsrep.h \
lib/resolve.h \
lib/rplan.h \
lib/utils.h \
lib/zonecut.h
# Dependencies
libkres_DEPEND := $(contrib)
......
......@@ -28,7 +28,7 @@
#include "lib/nsrep.h"
#include "lib/rplan.h"
#include "lib/module.h"
#include "lib/cache.h"
#include "lib/cache/api.h"
/**
* @file resolve.h
......
......@@ -19,7 +19,7 @@
#include "lib/rplan.h"
#include "lib/resolve.h"
#include "lib/cache.h"
#include "lib/cache/api.h"
#include "lib/defines.h"
#include "lib/layer.h"
......
......@@ -20,7 +20,7 @@
#include <libknot/dname.h>
#include <libknot/codes.h>
#include "lib/cache.h"
#include "lib/cache/api.h"
#include "lib/zonecut.h"
#include "lib/nsrep.h"
......
......@@ -19,7 +19,7 @@
#include "lib/generic/map.h"
#include "lib/generic/pack.h"
#include "lib/defines.h"
#include "lib/cache.h"
#include "lib/cache/api.h"
struct kr_rplan;
struct kr_context;
......
......@@ -27,8 +27,8 @@
#include "contrib/cleanup.h"
#include "lib/generic/array.h"
#include "lib/cdb.h"
#include "lib/cache.h"
#include "lib/cache/cdb_api.h"
#include "lib/cache/api.h"
#include "lib/utils.h"
/* memcached client */
......
......@@ -17,9 +17,9 @@
#include <contrib/cleanup.h>
#include "daemon/engine.h"
#include "lib/cdb.h"
#include "lib/cache/cdb_api.h"
#include "lib/module.h"
#include "lib/cache.h"
#include "lib/cache/api.h"
/** @internal Redis API */
const struct kr_cdb_api *cdb_memcached(void);
......
......@@ -28,7 +28,7 @@
#include "contrib/ucw/lib.h"
#include "lib/cdb.h"
#include "lib/cache/cdb_api.h"
#include "lib/cache.h"
#include "lib/utils.h"
#include "lib/defines.h"
......
......@@ -21,7 +21,7 @@
#include "tests/test.h"
#include "lib/cache.h"
#include "lib/cdb_lmdb.h"
#include "lib/cache/cdb_lmdb.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