From: Amos Jeffries Date: Fri, 21 Nov 2025 23:15:02 +0000 (+0000) Subject: Maintenance: Polish fqdncache.h (#1848) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c87386f93051503909f74e9c6e3bcd5ab4f4ef1;p=thirdparty%2Fsquid.git Maintenance: Polish fqdncache.h (#1848) --- diff --git a/src/fqdncache.h b/src/fqdncache.h index 76a4f52fc2..87811af35a 100644 --- a/src/fqdncache.h +++ b/src/fqdncache.h @@ -11,23 +11,22 @@ #ifndef SQUID_SRC_FQDNCACHE_H #define SQUID_SRC_FQDNCACHE_H -#include "ip/Address.h" +#include "dns/forward.h" +#include "ip/forward.h" #include "sbuf/forward.h" +#include "store/forward.h" -class StoreEntry; namespace Dns { -class LookupDetails; - /// whether to do reverse DNS lookups for source IPs of accepted connections extern bool ResolveClientAddressesAsap; } -typedef void FQDNH(const char *, const Dns::LookupDetails &details, void *); +using FQDNH = void (const char *, const Dns::LookupDetails &, void *); -void fqdncache_init(void); +void fqdncache_init(); void fqdnStats(StoreEntry *); -void fqdncache_restart(void); +void fqdncache_restart(); void fqdncache_purgelru(void *); void fqdncacheAddEntryFromHosts(char *addr, SBufList &hostnames);