mirror of
https://github.com/curl/curl.git
synced 2026-08-25 16:13:32 +03:00
- Added curl_easy_getinfo typechecker.
- Added macros for curl_share_setopt and curl_multi_setopt to check at least the correct number of arguments.
This commit is contained in:
parent
1380c9af9f
commit
6f3166c15b
7 changed files with 85 additions and 15 deletions
|
|
@ -548,6 +548,7 @@ void Curl_easy_initHandleData(struct SessionHandle *data)
|
|||
* curl_easy_getinfo() is an external interface that allows an app to retrieve
|
||||
* information from a performed transfer and similar.
|
||||
*/
|
||||
#undef curl_easy_getinfo
|
||||
CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...)
|
||||
{
|
||||
va_list arg;
|
||||
|
|
|
|||
|
|
@ -1778,6 +1778,7 @@ static CURLMcode multi_socket(struct Curl_multi *multi,
|
|||
return result;
|
||||
}
|
||||
|
||||
#undef curl_multi_setopt
|
||||
CURLMcode curl_multi_setopt(CURLM *multi_handle,
|
||||
CURLMoption option, ...)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ curl_share_init(void)
|
|||
return share;
|
||||
}
|
||||
|
||||
#undef curl_share_setopt
|
||||
CURLSHcode
|
||||
curl_share_setopt(CURLSH *sh, CURLSHoption option, ...)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue