/** * Copyright (C) 2024 Graham Leggett * * 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. * */ /* * redwax_unbound - DNS server access routines. * */ #include #include "config.h" #include "redwax-tool.h" #include "redwax_util.h" #if HAVE_UNBOUND_H module unbound_module; static apr_status_t redwax_unbound_initialise(redwax_tool_t *r) { return OK; } void redwax_add_default_unbound_hooks() { rt_hook_initialise(redwax_unbound_initialise, NULL, NULL, APR_HOOK_MIDDLE); } #else void redwax_add_default_unbound_hooks() { } #endif REDWAX_DECLARE_MODULE(unbound) = { STANDARD_MODULE_STUFF, redwax_add_default_unbound_hooks /* register hooks */ };