mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:43:40 +03:00
hostcache: made all host caches use structs, not pointers
This avoids unnecessary dynamic allocs and as this also removed the last users of *hash_alloc() and *hash_destroy(), those two functions are now removed.
This commit is contained in:
parent
d37e0160c2
commit
b419e7ae0c
10 changed files with 31 additions and 82 deletions
|
|
@ -124,8 +124,8 @@ void Curl_resolv_unlock(struct SessionHandle *data,
|
|||
/* for debugging purposes only: */
|
||||
void Curl_scan_cache_used(void *user, void *ptr);
|
||||
|
||||
/* make a new dns cache and return the handle */
|
||||
struct curl_hash *Curl_mk_dnscache(void);
|
||||
/* init a new dns cache and return success */
|
||||
int Curl_mk_dnscache(struct curl_hash *hash);
|
||||
|
||||
/* prune old entries from the DNS cache */
|
||||
void Curl_hostcache_prune(struct SessionHandle *data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue