- 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:
@@ -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, ...)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user