Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / lib / share.h
blobccfb141a143ccdef9daf726bb0ec0071fa4ba2f6
1 #ifndef __CURL_SHARE_H
2 #define __CURL_SHARE_H
4 /***************************************************************************
5 * _ _ ____ _
6 * Project ___| | | | _ \| |
7 * / __| | | | |_) | |
8 * | (__| |_| | _ <| |___
9 * \___|\___/|_| \_\_____|
11 * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
13 * This software is licensed as described in the file COPYING, which
14 * you should have received as part of this distribution. The terms
15 * are also available at http://curl.haxx.se/docs/copyright.html.
17 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
18 * copies of the Software, and permit persons to whom the Software is
19 * furnished to do so, under the terms of the COPYING file.
21 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22 * KIND, either express or implied.
24 * $Id: share.h,v 1.1.1.1 2008-09-23 16:32:05 hoffman Exp $
25 ***************************************************************************/
27 #include "setup.h"
28 #include <curl/curl.h>
29 #include "cookie.h"
31 /* SalfordC says "A structure member may not be volatile". Hence:
33 #ifdef __SALFORDC__
34 #define CURL_VOLATILE
35 #else
36 #define CURL_VOLATILE volatile
37 #endif
39 /* this struct is libcurl-private, don't export details */
40 struct Curl_share {
41 unsigned int specifier;
42 CURL_VOLATILE unsigned int dirty;
44 curl_lock_function lockfunc;
45 curl_unlock_function unlockfunc;
46 void *clientdata;
48 struct curl_hash *hostcache;
49 struct CookieInfo *cookies;
52 CURLSHcode Curl_share_lock (struct SessionHandle *, curl_lock_data,
53 curl_lock_access);
54 CURLSHcode Curl_share_unlock (struct SessionHandle *, curl_lock_data);
56 #endif /* __CURL_SHARE_H */