@@ -25,18 +25,20 @@ include("lC_exports_h.jl")
2525include (" lC_common_h.jl" )
2626include (" lC_curl_h.jl" )
2727
28- curl_easy_setopt (handle, opt, ptrval:: Array ) = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{Cvoid}), handle, opt, pointer (ptrval))
29- curl_easy_setopt (handle, opt, ptrval:: Integer ) = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Clong), handle, opt, ptrval)
30- curl_easy_setopt (handle, opt, ptrval:: Ptr{T} ) where {T} = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{T}), handle, opt, ptrval)
31- curl_easy_setopt (handle, opt, ptrval:: AbstractString ) = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{UInt8}), handle, opt, ptrval)
32-
33- curl_multi_setopt (handle, opt, ptrval:: Array ) = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Ptr{Cvoid}), handle, opt, pointer (ptrval))
34- curl_multi_setopt (handle, opt, ptrval:: Integer ) = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Clong), handle, opt, ptrval)
35- curl_multi_setopt (handle, opt, ptrval:: Ptr{T} ) where {T} = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Ptr{T}), handle, opt, ptrval)
36- curl_multi_setopt (handle, opt, ptrval:: AbstractString ) = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Ptr{UInt8}), handle, opt, ptrval)
37-
38- curl_easy_getinfo (handle, opt, ptrval:: Array ) = ccall ((:curl_easy_getinfo , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{Cvoid}), handle, opt, pointer (ptrval))
39- curl_easy_getinfo (handle, opt, ptrval:: AbstractString ) = ccall ((:curl_easy_getinfo , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{UInt8}), handle, opt, ptrval)
28+ # curl_easy_getinfo, curl_easy_setopt, and curl_multi_setopt are vararg C functions
29+
30+ curl_easy_setopt (handle, opt, ptrval:: Array{T} ) where T = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{T}. .. ), handle, opt, ptrval)
31+ curl_easy_setopt (handle, opt, ptrval:: Integer ) = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Clong... ), handle, opt, ptrval)
32+ curl_easy_setopt (handle, opt, ptrval:: Ptr{T} ) where {T} = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{T}. .. ), handle, opt, ptrval)
33+ curl_easy_setopt (handle, opt, ptrval:: AbstractString ) = ccall ((:curl_easy_setopt , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{UInt8}. .. ), handle, opt, ptrval)
34+
35+ curl_multi_setopt (handle, opt, ptrval:: Array{T} ) where T = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Ptr{T}. .. ), handle, opt, ptrval)
36+ curl_multi_setopt (handle, opt, ptrval:: Integer ) = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Clong... ), handle, opt, ptrval)
37+ curl_multi_setopt (handle, opt, ptrval:: Ptr{T} ) where {T} = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Ptr{T}. .. ), handle, opt, ptrval)
38+ curl_multi_setopt (handle, opt, ptrval:: AbstractString ) = ccall ((:curl_multi_setopt , libcurl), CURLMcode, (Ptr{CURLM}, CURLMoption, Ptr{UInt8}. .. ), handle, opt, ptrval)
39+
40+ curl_easy_getinfo (handle, opt, ptrval:: Array{T} ) where T = ccall ((:curl_easy_getinfo , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{T}. .. ), handle, opt, ptrval)
41+ curl_easy_getinfo (handle, opt, ptrval:: AbstractString ) = ccall ((:curl_easy_getinfo , libcurl), CURLcode, (Ptr{CURL}, CURLoption, Ptr{UInt8}. .. ), handle, opt, ptrval)
4042
4143include (" lC_defines_h.jl" )
4244
0 commit comments