#include "setup.h"#include <stdarg.h>#include <stdlib.h>#include <string.h>#include <curl/curl.h>#include "urldata.h"#include "share.h"#include "memory.h"#include "memdebug.h"Go to the source code of this file.
Functions | |
| CURLSH * | curl_share_init (void) |
| CURLSHcode | curl_share_setopt (CURLSH *sh, CURLSHoption option,...) |
| CURLSHcode | curl_share_cleanup (CURLSH *sh) |
| CURLSHcode | Curl_share_lock (struct SessionHandle *data, curl_lock_data type, curl_lock_access accesstype) |
| CURLSHcode | Curl_share_unlock (struct SessionHandle *data, curl_lock_data type) |
| CURLSHcode curl_share_cleanup | ( | CURLSH * | sh | ) |
Definition at line 154 of file share.c.
References Curl_share::clientdata, Curl_share::cookies, Curl_cookie_cleanup(), Curl_hash_destroy(), CURL_LOCK_ACCESS_SINGLE, CURL_LOCK_DATA_SHARE, CURLSHE_IN_USE, CURLSHE_INVALID, CURLSHE_OK, Curl_share::dirty, free, Curl_share::hostcache, Curl_share::lockfunc, NULL, and Curl_share::unlockfunc.
| CURLSH* curl_share_init | ( | void | ) |
Definition at line 37 of file share.c.
References CURL_LOCK_DATA_SHARE, malloc, and Curl_share::specifier.
| CURLSHcode Curl_share_lock | ( | struct SessionHandle * | data, | |
| curl_lock_data | type, | |||
| curl_lock_access | accesstype | |||
| ) |
Definition at line 188 of file share.c.
References Curl_share::clientdata, CURLSHE_INVALID, CURLSHE_OK, Curl_share::lockfunc, NULL, SessionHandle::share, and Curl_share::specifier.
Referenced by Curl_close(), Curl_cookie_loadfiles(), Curl_hostcache_prune(), Curl_http(), Curl_readwrite(), Curl_resolv(), Curl_resolv_unlock(), Curl_setopt(), and remove_entry_if_stale().
| CURLSHcode curl_share_setopt | ( | CURLSH * | sh, | |
| CURLSHoption | option, | |||
| ... | ||||
| ) |
Definition at line 50 of file share.c.
References Curl_share::clientdata, Curl_share::cookies, Curl_cookie_cleanup(), Curl_cookie_init(), Curl_hash_destroy(), CURL_LOCK_DATA_CONNECT, CURL_LOCK_DATA_COOKIE, CURL_LOCK_DATA_DNS, CURL_LOCK_DATA_SSL_SESSION, Curl_mk_dnscache(), CURLSHE_BAD_OPTION, CURLSHE_IN_USE, CURLSHE_NOMEM, CURLSHE_OK, CURLSHOPT_LOCKFUNC, CURLSHOPT_SHARE, CURLSHOPT_UNLOCKFUNC, CURLSHOPT_UNSHARE, CURLSHOPT_USERDATA, Curl_share::dirty, Curl_share::hostcache, Curl_share::lockfunc, NULL, Curl_share::specifier, TRUE, and Curl_share::unlockfunc.
| CURLSHcode Curl_share_unlock | ( | struct SessionHandle * | data, | |
| curl_lock_data | type | |||
| ) |
Definition at line 206 of file share.c.
References Curl_share::clientdata, CURLSHE_INVALID, CURLSHE_OK, NULL, SessionHandle::share, Curl_share::specifier, and Curl_share::unlockfunc.
Referenced by Curl_close(), Curl_cookie_loadfiles(), Curl_hostcache_prune(), Curl_http(), Curl_readwrite(), Curl_resolv(), Curl_resolv_unlock(), Curl_setopt(), and remove_entry_if_stale().
1.5.6