aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-12-15 17:33:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-12-15 17:33:49 +0000
commit3788f25eacbf4fcf20b04f1e74ea735b8b9b1396 (patch)
tree285ba121e95cd3e9d3c7fee096cc1246383c02f1 /lib/hostip.h
parent5b8852107b8a157024bef586f6d66f27efff26fc (diff)
added a library-wide interface for doing dns cache pruning, and no longer
make the pruning at each name lookup, only in Curl_done().
Diffstat (limited to 'lib/hostip.h')
-rw-r--r--lib/hostip.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/hostip.h b/lib/hostip.h
index f902b5c64..c033bc25a 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -77,6 +77,9 @@ void Curl_freeaddrinfo(Curl_addrinfo *freeaddr);
/* free cached name info */
void Curl_freednsinfo(void *freethis);
+/* prune old entries from the DNS cache */
+void Curl_hostcache_prune(struct SessionHandle *data);
+
#ifdef CURLDEBUG
void curl_freeaddrinfo(struct addrinfo *freethis,
int line, const char *source);