From 8d7f402efbcace85851c6bb8f6aa2452c15a9595 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Mon, 7 Jan 2002 20:52:32 +0000 Subject: Make cach'ing work with threads now, there are now three cases: - Use a global dns cache (via setting the tentatively named, CURLOPT_DNS_USE_GLOBAL_CACHE option to true) - Use a per-handle dns cache, by default - Use a pooled dns cache when in the "multi" interface --- lib/hash.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/hash.h') diff --git a/lib/hash.h b/lib/hash.h index 420bb899f..66ef3dfeb 100644 --- a/lib/hash.h +++ b/lib/hash.h @@ -71,6 +71,7 @@ int curl_hash_extended_delete(curl_hash *h, char *str_key, unsigned int str_key_ int curl_hash_extended_find(curl_hash *h, char *str_key, unsigned int str_key_len, unsigned long num_key, void **p); void curl_hash_apply(curl_hash *h, void *user, void (*cb)(void *, curl_hash_element *)); +size_t curl_hash_count(curl_hash *h); void curl_hash_clean(curl_hash *h); void curl_hash_destroy(curl_hash *h); -- cgit v1.2.1