1 /** @file 2 3 A brief file description 4 5 @section license License 6 7 Licensed to the Apache Software Foundation (ASF) under one 8 or more contributor license agreements. See the NOTICE file 9 distributed with this work for additional information 10 regarding copyright ownership. The ASF licenses this file 11 to you under the Apache License, Version 2.0 (the 12 "License"); you may not use this file except in compliance 13 with the License. You may obtain a copy of the License at 14 15 http://www.apache.org/licenses/LICENSE-2.0 16 17 Unless required by applicable law or agreed to in writing, software 18 distributed under the License is distributed on an "AS IS" BASIS, 19 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 See the License for the specific language governing permissions and 21 limitations under the License. 22 */ 23 24 /***************************************************************************** 25 * 26 * I_SplitDNSProcessor.h - Interface to DNS server selection 27 * 28 * 29 ****************************************************************************/ 30 31 #pragma once 32 33 struct SplitDNS; 34 35 /* -------------------------------------------------------------- 36 ** struct SplitDNSConfig 37 -------------------------------------------------------------- */ 38 39 struct SplitDNSConfig { 40 static void startup(); 41 42 static bool isSplitDNSEnabled(); 43 44 static void reconfigure(); 45 static SplitDNS *acquire(); 46 static void release(SplitDNS *params); 47 static void print(); 48 49 static int m_id; 50 static Ptr<ProxyMutex> dnsHandler_mutex; 51 static ConfigUpdateHandler<SplitDNSConfig> *splitDNSUpdate; 52 53 static int gsplit_dns_enabled; 54 }; 55