diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-12-11 20:13:29 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-12-24 23:51:02 +0100 |
commit | 1649e680f62450a29589c23c64a67267e9e439f2 (patch) | |
tree | 561e8514e8b7d3b9ea464c4b2c3a57bce721856d /lib/conncache.h | |
parent | 2897ce7dc2e1b7e8c94e8fc79f6199c33efe7547 (diff) | |
download | curl-1649e680f62450a29589c23c64a67267e9e439f2.tar.gz |
Curl_conncache_foreach: allow callback to break loop
... and have it take a proper 'struct connectdata *' as first argument
Diffstat (limited to 'lib/conncache.h')
-rw-r--r-- | lib/conncache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/conncache.h b/lib/conncache.h index 7b7baae2c..03b129d4e 100644 --- a/lib/conncache.h +++ b/lib/conncache.h @@ -48,7 +48,8 @@ void Curl_conncache_remove_conn(struct conncache *connc, void Curl_conncache_foreach(struct conncache *connc, void *param, - void (*func)(void *, void *)); + int (*func)(struct connectdata *conn, + void *param)); struct connectdata * Curl_conncache_find_first_connection(struct conncache *connc); |