]> git.ipfire.org Git - thirdparty/squid.git/blob - src/dns/forward.h
a27ed7e0b2030379d625c5005ea6a59494d943dc
[thirdparty/squid.git] / src / dns / forward.h
1 /*
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #ifndef _SQUID_SRC_DNS_FORWARD_H
10 #define _SQUID_SRC_DNS_FORWARD_H
11
12 namespace Ip
13 {
14 class Address;
15 }
16
17 class rfc1035_rr;
18
19 typedef void IDNSCB(void *, const rfc1035_rr *, int, const char *);
20
21 // generic DNS API
22 namespace Dns
23 {
24
25 class LookupDetails;
26
27 void Init(void);
28 void Shutdown(void);
29
30 } // namespace Dns
31
32 // internal DNS client API
33 void idnsALookup(const char *, IDNSCB *, void *);
34 void idnsPTRLookup(const Ip::Address &, IDNSCB *, void *);
35
36 #endif /* _SQUID_SRC_DNS_FORWARD_H */
37