]> git.ipfire.org Git - thirdparty/pdns.git/blame - pdns/common_startup.hh
Merge pull request #5113 from RobinGeuze/addPerPoolPolicy
[thirdparty/pdns.git] / pdns / common_startup.hh
CommitLineData
12c86877 1/*
12471842
PL
2 * This file is part of PowerDNS or dnsdist.
3 * Copyright -- PowerDNS.COM B.V. and its contributors
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * In addition, for the avoidance of any doubt, permission is granted to
10 * link this program with OpenSSL and to (re)distribute the binaries
11 * produced as the result of such linking.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
092f210a
BH
22#ifndef COMMON_STARTUP_HH
23#define COMMON_STARTUP_HH
24
dea466f3 25#include "packetcache.hh"
092f210a
BH
26#include "utility.hh"
27#include "arguments.hh"
28#include "communicator.hh"
29#include "distributor.hh"
30#include "dnspacket.hh"
31#include "dnsproxy.hh"
32#include "dynlistener.hh"
33#include "nameserver.hh"
34#include "statbag.hh"
35#include "tcpreceiver.hh"
092f210a
BH
36
37extern ArgvMap theArg;
abc1d928 38extern StatBag S; //!< Statistics are gathered across PDNS via the StatBag class S
7c696097 39extern PacketCache PC; //!< This is the main PacketCache, shared across all threads
092f210a
BH
40extern DNSProxy *DP;
41extern DynListener *dl;
42extern CommunicatorClass Communicator;
43extern UDPNameserver *N;
44extern int avg_latency;
45extern TCPNameserver *TN;
3e8216c8 46extern AuthLua *LPE;
092f210a
BH
47extern ArgvMap & arg( void );
48extern void declareArguments();
49extern void declareStats();
50extern void mainthread();
51extern int isGuarded( char ** );
952d3fcb 52void* carbonDumpThread(void*);
357f6a75 53extern bool g_anyToTcp;
fc41a1a6 54extern bool g_8bitDNS;
357f6a75 55
092f210a 56#endif // COMMON_STARTUP_HH