]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/rrcache: renamed itercache to rrcache
authorMarek Vavruša <marek.vavrusa@nic.cz>
Sun, 3 May 2015 18:28:51 +0000 (20:28 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Sun, 3 May 2015 18:28:51 +0000 (20:28 +0200)
daemon/engine.c
lib/README.rst
lib/layer/rrcache.c [moved from lib/layer/itercache.c with 99% similarity]
lib/layer/rrcache.h [moved from lib/layer/itercache.h with 93% similarity]
lib/lib.mk
lib/resolve.c
lib/resolve.h
tests/test_integration.c

index 32ba8d375a34c82964b48be9b24422e789f36d14..a5eb274eef94149b34b607071dcd5d3873e23b93 100644 (file)
@@ -118,7 +118,7 @@ static int init_resolver(struct engine *engine)
 
        /* Load basic modules */
        engine_register(engine, "iterate");
-       engine_register(engine, "itercache");
+       engine_register(engine, "rrcache");
        engine_register(engine, "pktcache");
 
        /* Initialize storage backends */
index 1e3fe89d28a58ba633f9be5bd561f808abffaadb..5828ce68a09f63e0b559e43aafd630c060042f25 100644 (file)
@@ -33,7 +33,7 @@ Writing layers
 
 The resolver :ref:`library <lib_index>` leverages the `processing API`_ from the libknot to separate packet processing code
 into layers. In order to keep the core library sane and coverable, there are only two built-in layers:
-the :c:func:`iterate_layer`, and the :c:func:`itercache_layer`.
+the :c:func:`iterate_layer`, and the :c:func:`rrcache_layer`.
 
 *Note* |---| This is only crash-course in the library internals, see the resolver :ref:`library <lib_index>` documentation for the complete overview of the services.
 
similarity index 99%
rename from lib/layer/itercache.c
rename to lib/layer/rrcache.c
index f1283ab4d32b6b6ac56353ecd2aa58d38339500a..94a590deeade30b192177da5da502285194cb826 100644 (file)
@@ -247,7 +247,7 @@ static int stash(knot_layer_t *ctx, knot_pkt_t *pkt)
 }
 
 /** Module implementation. */
-const knot_layer_api_t *itercache_layer(void)
+const knot_layer_api_t *rrcache_layer(void)
 {
        static const knot_layer_api_t _layer = {
                .begin = &begin,
@@ -258,4 +258,4 @@ const knot_layer_api_t *itercache_layer(void)
        return &_layer;
 }
 
-KR_MODULE_EXPORT(itercache)
+KR_MODULE_EXPORT(rrcache)
similarity index 93%
rename from lib/layer/itercache.h
rename to lib/layer/rrcache.h
index 532196b0852b47238d99404b5d16fcce6676c1c3..cb5474664c0f5c25fb6217c00bfba4da7b794244 100644 (file)
@@ -19,4 +19,4 @@
 #include "lib/layer.h"
 
 /* Processing module implementation. */
-extern const knot_layer_api_t *itercache_layer(void);
+extern const knot_layer_api_t *rrcache_layer(void);
index 52b4881a0828692a83831585242f97f817f0e970..f43b38b8d73fbd301cd297c7849e0ed2bac5ef87 100644 (file)
@@ -6,7 +6,7 @@ libkresolve_SOURCES := \
        $(ccan_EMBED)          \
        lib/generic/map.c      \
        lib/layer/iterate.c    \
-       lib/layer/itercache.c  \
+       lib/layer/rrcache.c    \
        lib/layer/pktcache.c   \
        lib/utils.c            \
        lib/nsrep.c            \
index 6628400c4d426707df300b2b49a7de077b1c61b1..75fc3cd4363fa4b36e314d6649d3dad16dee9c7a 100644 (file)
 #include <libknot/descriptor.h>
 #include <libknot/internal/net.h>
 
+#include "lib/layer.h"
 #include "lib/rplan.h"
 #include "lib/resolve.h"
-#include "lib/layer/itercache.h"
-#include "lib/layer/iterate.h"
 
 #define DEBUG_MSG(fmt...) QRDEBUG(kr_rplan_current(rplan), "resl",  fmt)
 
index ec8db797a4864a6316c70d4ddea1639ba89d0a63..eefc75d0de4adf8e8dabd557e91124afa0e4efef 100644 (file)
@@ -42,7 +42,7 @@
  *
  * // Push basic layers
  * array_push(ctx.layers, iterate_layer);
- * array_push(ctx.layers, itercache_layer);
+ * array_push(ctx.layers, rrcache_layer);
  *
  * // Resolve "IN A cz."
  * knot_pkt_t *answer = knot_pkt_new(NULL, 65535, ctx.pool);
index 6a23ff3cd6eefdb40adec1a3e06ac2b83b131aae..2ccc50d3853ef6a8e8dce30b2bb76304aff8e3c7 100644 (file)
@@ -57,7 +57,7 @@ static PyObject* init(PyObject* self, PyObject* args)
                return NULL;
        }
        kr_module_load(&global_modules.at[0], "iterate", NULL);
-       kr_module_load(&global_modules.at[1], "itercache", NULL);
+       kr_module_load(&global_modules.at[1], "rrcache", NULL);
        global_modules.len = 2;
 
        /* Initialize resolution context */