00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 */ 00004 00005 #ifndef __CURL_SHARE_H 00006 #define __CURL_SHARE_H 00007 00008 #include "setup.h" 00009 #include <curl/curl.h> 00010 #include "cookie.h" 00011 00012 #ifdef __SALFORDC__ 00013 #define CURL_VOLATILE 00014 #else 00015 #define CURL_VOLATILE volatile 00016 #endif 00017 00018 struct Curl_share { 00019 unsigned int specifier; 00020 CURL_VOLATILE unsigned int dirty; 00021 00022 curl_lock_function lockfunc; 00023 curl_unlock_function unlockfunc; 00024 void *clientdata; 00025 00026 struct curl_hash *hostcache; 00027 struct CookieInfo *cookies; 00028 }; 00029 00030 CURLSHcode Curl_share_lock (struct SessionHandle *, curl_lock_data, 00031 curl_lock_access); 00032 CURLSHcode Curl_share_unlock (struct SessionHandle *, curl_lock_data); 00033 00034 #endif
1.5.6