diff --git a/knot-resolver.files b/knot-resolver.files index 1b8b7faad61084624419498fbff6b54da59cbd88..df843b883268c73a3995851603b71b72f4c8cce3 100644 --- a/knot-resolver.files +++ b/knot-resolver.files @@ -9,3 +9,4 @@ lib/resolve.c lib/resolve.h tests/context.c tests/resolve.c +lib/layer.h diff --git a/lib/Makefile.am b/lib/Makefile.am index c64e8bbb6abd80ae37644f6a2c8335f165bc4080..817be935671a9865717940c65b14f0ceb26de2f2 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -5,9 +5,10 @@ lib_LTLIBRARIES = libknotresolve.la libknotresolve_la_SOURCES = \ layer/iterate.h \ layer/iterate.c \ - layer/static.h \ - layer/static.c \ - context.h \ - context.c \ - resolve.h \ - resolve.c + layer/static.h \ + layer/static.c \ + layer.h \ + context.h \ + context.c \ + resolve.h \ + resolve.c diff --git a/lib/layer.h b/lib/layer.h new file mode 100644 index 0000000000000000000000000000000000000000..2b7017914ad86cb10e83ff5dc5ec98dee1d10e93 --- /dev/null +++ b/lib/layer.h @@ -0,0 +1,27 @@ +/* Copyright 2014 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +#pragma once + +#include <libknot/processing/process.h> +#include "lib/context.h" + +/*! + * \brief Processing module parameters. + */ +struct layer_param { + struct kr_context *ctx; + struct kr_result *result; +}; \ No newline at end of file