1
0
Fork 0
knot-resolver/lib/layer/cache.c
Daniel Baumann fbc604e215
Adding upstream version 5.7.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 13:56:17 +02:00

20 lines
459 B
C

/* Copyright (C) CZ.NIC, z.s.p.o. <knot-resolver@labs.nic.cz>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#include "lib/module.h"
#include "lib/cache/api.h"
/** Module implementation. */
int cache_init(struct kr_module *self)
{
static const kr_layer_api_t layer = {
.produce = &cache_peek,
.consume = &cache_stash,
};
self->layer = &layer;
return kr_ok();
}
KR_MODULE_EXPORT(cache) /* useless for builtin module, but let's be consistent */