@@ -2,6 +2,7 @@ const __fd_mask = Clong
22
33mutable struct fd_set
44 __fds_bits:: NTuple{16, __fd_mask}
5+ fd_set () = new ()
56end
67
78const sa_family_t = Cushort
@@ -158,6 +159,7 @@ mutable struct curl_sockaddr
158159 protocol:: Cint
159160 addrlen:: Cuint
160161 addr:: sockaddr
162+ curl_sockaddr () = new ()
161163end
162164
163165# typedef curl_socket_t ( * curl_opensocket_callback ) ( void * clientp , curlsocktype purpose , struct curl_sockaddr * address )
@@ -383,6 +385,7 @@ mutable struct curl_khkey
383385 key:: Ptr{Cchar}
384386 len:: Csize_t
385387 keytype:: curl_khtype
388+ curl_khkey () = new ()
386389end
387390
388391@enum curl_khstat:: UInt32 begin
888891mutable struct curl_forms
889892 option:: CURLformoption
890893 value:: Ptr{Cchar}
894+ curl_forms () = new ()
891895end
892896
893897@enum CURLFORMcode:: UInt32 begin
956960mutable struct curl_ssl_backend
957961 id:: curl_sslbackend
958962 name:: Ptr{Cchar}
963+ curl_ssl_backend () = new ()
959964end
960965
961966@enum CURLsslset:: UInt32 begin
@@ -984,11 +989,13 @@ end
984989mutable struct curl_certinfo
985990 num_of_certs:: Cint
986991 certinfo:: Ptr{Ptr{curl_slist}}
992+ curl_certinfo () = new ()
987993end
988994
989995mutable struct curl_tlssessioninfo
990996 backend:: curl_sslbackend
991997 internals:: Ptr{Cvoid}
998+ curl_tlssessioninfo () = new ()
992999end
9931000
9941001@enum CURLINFO:: UInt32 begin
@@ -1160,6 +1167,7 @@ mutable struct curl_version_info_data
11601167 capath:: Ptr{Cchar}
11611168 zstd_ver_num:: Cuint
11621169 zstd_version:: Ptr{Cchar}
1170+ curl_version_info_data () = new ()
11631171end
11641172
11651173function curl_version_info (arg1)
@@ -1182,6 +1190,7 @@ mutable struct curl_blob
11821190 data:: Ptr{Cvoid}
11831191 len:: Csize_t
11841192 flags:: Cuint
1193+ curl_blob () = new ()
11851194end
11861195
11871196function curl_easy_init ()
@@ -1266,6 +1275,7 @@ mutable struct curl_waitfd
12661275 fd:: curl_socket_t
12671276 events:: Cshort
12681277 revents:: Cshort
1278+ curl_waitfd () = new ()
12691279end
12701280
12711281function curl_multi_init ()
@@ -1444,6 +1454,7 @@ mutable struct curl_easyoption
14441454 id:: CURLoption
14451455 type:: curl_easytype
14461456 flags:: Cuint
1457+ curl_easyoption () = new ()
14471458end
14481459
14491460function curl_easy_option_by_name (name)
@@ -1485,6 +1496,7 @@ mutable struct __JL_Ctag_55
14851496 user:: Ptr{Cchar}
14861497 group:: Ptr{Cchar}
14871498 target:: Ptr{Cchar}
1499+ __JL_Ctag_55 () = new ()
14881500end
14891501
14901502function Base. getproperty (x:: Ptr{__JL_Ctag_55} , f:: Symbol )
@@ -1919,7 +1931,7 @@ const CURLINFO_SOCKET = 0x00500000
19191931
19201932const CURLINFO_OFF_T = 0x00600000
19211933
1922- const CURLINFO_MASK = Float32 ( 0x0000ffff )
1934+ const CURLINFO_MASK = 0x000fffff
19231935
19241936const CURLINFO_TYPEMASK = 0x00f00000
19251937
0 commit comments