@@ -42,25 +42,27 @@ elseif Sys.iswindows() && Sys.ARCH === :x86_64
42
42
include (" wrappers/x86_64-w64-mingw32.jl" )
43
43
end
44
44
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)
46
47
47
48
curl_easy_setopt (handle, opt, ptrval:: Array{T} ) where T = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{T}. .. ), handle, opt, ptrval)
48
49
curl_easy_setopt (handle, opt, ptrval:: Integer ) = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Clong... ), handle, opt, ptrval)
49
50
curl_easy_setopt (handle, opt, ptrval:: Ptr{T} ) where {T} = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{T}. .. ), handle, opt, ptrval)
50
51
curl_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)
51
53
52
54
curl_multi_setopt (handle, opt, ptrval:: Array{T} ) where T = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Ptr{T}. .. ), handle, opt, ptrval)
53
55
curl_multi_setopt (handle, opt, ptrval:: Integer ) = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Clong... ), handle, opt, ptrval)
54
56
curl_multi_setopt (handle, opt, ptrval:: Ptr{T} ) where {T} = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Ptr{T}. .. ), handle, opt, ptrval)
55
57
curl_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)
56
59
57
60
curl_easy_getinfo (handle, opt, ptrval:: Array{T} ) where T = ccall ((:curl_easy_getinfo , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{T}. .. ), handle, opt, ptrval)
58
61
curl_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)
59
63
60
64
include (" Mime_ext.jl" )
61
65
62
-
63
-
64
66
# exports
65
67
const PREFIXES = [" curl_" , " CURLOPT_" , " CURLFORM_" , " CURLE_" , " CURLINFO_" , " CURLSSH_" , " CURLAUTH_" , " CURLM" , " CURL" ]
66
68
foreach (names (@__MODULE__ ; all= true )) do s
0 commit comments