aboutsummaryrefslogtreecommitdiff
path: root/lib/share.h
diff options
context:
space:
mode:
authorJean-Philippe Barette-LaPierre <jpbarrette@gmail.com>2003-02-04 23:48:46 +0000
committerJean-Philippe Barette-LaPierre <jpbarrette@gmail.com>2003-02-04 23:48:46 +0000
commitbeb13a1d3e832ae97221ba1d9ad7f9bc262de798 (patch)
tree4d7a4a247c950e3959b9568d76df29df9d54ba8c /lib/share.h
parentfa47138327a98195d0be2c8c2d741cee8763d74d (diff)
downloadgnurl-beb13a1d3e832ae97221ba1d9ad7f9bc262de798.tar.gz
gnurl-beb13a1d3e832ae97221ba1d9ad7f9bc262de798.tar.bz2
gnurl-beb13a1d3e832ae97221ba1d9ad7f9bc262de798.zip
added the sharing of DNS cache
Diffstat (limited to 'lib/share.h')
-rw-r--r--lib/share.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/share.h b/lib/share.h
index ea6f2f1ce..76e6244d7 100644
--- a/lib/share.h
+++ b/lib/share.h
@@ -30,15 +30,24 @@
/* this struct is libcurl-private, don't export details */
struct Curl_share {
unsigned int specifier;
- unsigned int locked;
- unsigned int dirty;
+ volatile unsigned int dirty;
curl_lock_function lockfunc;
curl_unlock_function unlockfunc;
void *clientdata;
+
+ curl_hash *hostcache;
};
-CURLSHcode Curl_share_aquire_lock (struct SessionHandle *, curl_lock_data);
-CURLSHcode Curl_share_release_lock (struct SessionHandle *, curl_lock_data);
+CURLSHcode Curl_share_lock (
+ struct SessionHandle *,
+ curl_lock_data,
+ curl_lock_access
+ );
+
+CURLSHcode Curl_share_unlock (
+ struct SessionHandle *,
+ curl_lock_data
+ );
#endif /* __CURL_SHARE_H */