@@ -42,25 +42,27 @@ elseif Sys.iswindows() && Sys.ARCH === :x86_64
4242 include (" wrappers/x86_64-w64-mingw32.jl" )
4343end
4444
45- # curl_easy_getinfo, curl_easy_setopt, and curl_multi_setopt are vararg C functions
45+ # curl_share_setopt, curl_easy_getinfo, curl_easy_setopt, and curl_multi_setopt are vararg C functions
46+ curl_share_setopt (handle, opt, param) = ccall ((:curl_share_setopt , libcurl), CURLSHcode, (Ptr{CURLSH}, CURLSHoption, Any... ), handle, opt, param)
4647
4748curl_easy_setopt (handle, opt, ptrval:: Array{T} ) where T = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{T}. .. ), handle, opt, ptrval)
4849curl_easy_setopt (handle, opt, ptrval:: Integer ) = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Clong... ), handle, opt, ptrval)
4950curl_easy_setopt (handle, opt, ptrval:: Ptr{T} ) where {T} = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{T}. .. ), handle, opt, ptrval)
5051curl_easy_setopt (handle, opt, ptrval:: AbstractString ) = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{UInt8}. .. ), handle, opt, ptrval)
52+ curl_easy_setopt (handle, opt, param) = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Any... ), handle, opt, param)
5153
5254curl_multi_setopt (handle, opt, ptrval:: Array{T} ) where T = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Ptr{T}. .. ), handle, opt, ptrval)
5355curl_multi_setopt (handle, opt, ptrval:: Integer ) = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Clong... ), handle, opt, ptrval)
5456curl_multi_setopt (handle, opt, ptrval:: Ptr{T} ) where {T} = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Ptr{T}. .. ), handle, opt, ptrval)
5557curl_multi_setopt (handle, opt, ptrval:: AbstractString ) = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Ptr{UInt8}. .. ), handle, opt, ptrval)
58+ curl_multi_setopt (multi_handle, opt, param) = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Any... ), multi_handle, opt, param)
5659
5760curl_easy_getinfo (handle, opt, ptrval:: Array{T} ) where T = ccall ((:curl_easy_getinfo , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{T}. .. ), handle, opt, ptrval)
5861curl_easy_getinfo (handle, opt, ptrval:: AbstractString ) = ccall ((:curl_easy_getinfo , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{UInt8}. .. ), handle, opt, ptrval)
62+ curl_easy_getinfo (handle, info, arg) = ccall ((:curl_easy_getinfo , libcurl), CURLcode, (Ptr{CURL}, CURLINFO, Any... ), handle, info, arg)
5963
6064include (" Mime_ext.jl" )
6165
62-
63-
6466# exports
6567const PREFIXES = [" curl_" , " CURLOPT_" , " CURLFORM_" , " CURLE_" , " CURLINFO_" , " CURLSSH_" , " CURLAUTH_" , " CURLM" , " CURL" ]
6668foreach (names (@__MODULE__ ; all= true )) do s
0 commit comments