From fe51d28daad36e3cda783e9e0a365840ad05e0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Vavru=C5=A1a?= <marek.vavrusa@nic.cz> Date: Tue, 5 Aug 2014 22:14:38 +0200 Subject: [PATCH] layer: generic parameter --- knot-resolver.files | 1 + lib/Makefile.am | 13 +++++++------ lib/layer.h | 27 +++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 lib/layer.h diff --git a/knot-resolver.files b/knot-resolver.files index 1b8b7faad..df843b883 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 c64e8bbb6..817be9356 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 000000000..2b7017914 --- /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 -- GitLab