Skip to content

Commit 3794c68

Browse files
quinnj2quinnj
andauthored
Update aws_c_common_jll to version 0.12.6 (#27)
Co-authored-by: quinnj <[email protected]>
1 parent c9aabc5 commit 3794c68

15 files changed

+3396
-485
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "LibAwsCommon"
22
uuid = "c6e421ba-b5f8-4792-a1c4-42948de3ed9d"
3-
version = "1.3.5"
3+
version = "1.3.6"
44

55
[deps]
66
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
@@ -9,7 +9,7 @@ aws_c_common_jll = "73048d1d-b8c4-5092-a58d-866c5e8d1e50"
99
[compat]
1010
Aqua = "0.7,0.8"
1111
CEnum = "0.5"
12-
aws_c_common_jll = "=0.12.5"
12+
aws_c_common_jll = "=0.12.6"
1313
Test = "1.11"
1414
julia = "1.6"
1515

gen/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ aws_c_common_jll = "73048d1d-b8c4-5092-a58d-866c5e8d1e50"
66
[compat]
77
Clang = "0.18.3,0.19"
88
JLLPrefixes = "0.3,0.4"
9-
aws_c_common_jll = "=0.12.5"
9+
aws_c_common_jll = "=0.12.6"

lib/aarch64-apple-darwin20.jl

Lines changed: 99 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using CEnum
1+
using CEnum: CEnum, @cenum
22

33
"""
44
Documentation not found.
@@ -138,6 +138,14 @@ function Base.setproperty!(x::Ptr{sigval}, f::Symbol, v)
138138
unsafe_store!(getproperty(x, f), v)
139139
end
140140

141+
function Base.propertynames(x::sigval, private::Bool = false)
142+
(:sival_int, :sival_ptr, if private
143+
fieldnames(typeof(x))
144+
else
145+
()
146+
end...)
147+
end
148+
141149
"""
142150
__siginfo
143151
@@ -172,6 +180,14 @@ function Base.setproperty!(x::Ptr{__siginfo}, f::Symbol, v)
172180
unsafe_store!(getproperty(x, f), v)
173181
end
174182

183+
function Base.propertynames(x::__siginfo, private::Bool = false)
184+
(:si_signo, :si_errno, :si_code, :si_pid, :si_uid, :si_status, :si_addr, :si_value, :si_band, :__pad, if private
185+
fieldnames(typeof(x))
186+
else
187+
()
188+
end...)
189+
end
190+
175191
"""
176192
Documentation not found.
177193
"""
@@ -5969,6 +5985,20 @@ function aws_base64_compute_encoded_len(to_encode_len, encoded_len)
59695985
ccall((:aws_base64_compute_encoded_len, libaws_c_common), Cint, (Csize_t, Ptr{Csize_t}), to_encode_len, encoded_len)
59705986
end
59715987

5988+
"""
5989+
aws_base64_url_compute_encoded_len(to_encode_len, encoded_len)
5990+
5991+
Computes the length necessary to store the output of [`aws_base64_url_encode`](@ref) call. returns -1 on failure, and 0 on success. encoded\\_length will be set on success.
5992+
5993+
### Prototype
5994+
```c
5995+
int aws_base64_url_compute_encoded_len(size_t to_encode_len, size_t *encoded_len);
5996+
```
5997+
"""
5998+
function aws_base64_url_compute_encoded_len(to_encode_len, encoded_len)
5999+
ccall((:aws_base64_url_compute_encoded_len, libaws_c_common), Cint, (Csize_t, Ptr{Csize_t}), to_encode_len, encoded_len)
6000+
end
6001+
59726002
"""
59736003
aws_base64_encode(to_encode, output)
59746004
@@ -5983,10 +6013,24 @@ function aws_base64_encode(to_encode, output)
59836013
ccall((:aws_base64_encode, libaws_c_common), Cint, (Ptr{aws_byte_cursor}, Ptr{aws_byte_buf}), to_encode, output)
59846014
end
59856015

6016+
"""
6017+
aws_base64_url_encode(to_encode, output)
6018+
6019+
Base 64 URL encodes the contents of to\\_encode and stores the result in output.
6020+
6021+
### Prototype
6022+
```c
6023+
int aws_base64_url_encode( const struct aws_byte_cursor *AWS_RESTRICT to_encode, struct aws_byte_buf *AWS_RESTRICT output);
6024+
```
6025+
"""
6026+
function aws_base64_url_encode(to_encode, output)
6027+
ccall((:aws_base64_url_encode, libaws_c_common), Cint, (Ptr{aws_byte_cursor}, Ptr{aws_byte_buf}), to_encode, output)
6028+
end
6029+
59866030
"""
59876031
aws_base64_compute_decoded_len(to_decode, decoded_len)
59886032
5989-
Computes the length necessary to store the output of [`aws_base64_decode`](@ref) call. returns -1 on failure, and 0 on success. decoded\\_len will be set on success.
6033+
Computes the length necessary to store the output of [`aws_base64_decode`](@ref) call. Note: works on both regular and url base64. returns -1 on failure, and 0 on success. decoded\\_len will be set on success.
59906034
59916035
### Prototype
59926036
```c
@@ -6000,7 +6044,7 @@ end
60006044
"""
60016045
aws_base64_decode(to_decode, output)
60026046
6003-
Base 64 decodes the contents of to\\_decode and stores the result in output.
6047+
Base 64 decodes the contents of to\\_decode and stores the result in output. Note: works on both regular and url base64.
60046048
60056049
### Prototype
60066050
```c
@@ -8903,6 +8947,14 @@ function Base.setproperty!(x::Ptr{aws_logger_vtable}, f::Symbol, v)
89038947
unsafe_store!(getproperty(x, f), v)
89048948
end
89058949

8950+
function Base.propertynames(x::aws_logger_vtable, private::Bool = false)
8951+
(:log, :get_log_level, :clean_up, :set_log_level, if private
8952+
fieldnames(typeof(x))
8953+
else
8954+
()
8955+
end...)
8956+
end
8957+
89068958
"""
89078959
aws_logger
89088960
@@ -10528,12 +10580,16 @@ end
1052810580
"""
1052910581
aws_platform_os
1053010582
10531-
Documentation not found.
10583+
Platform OS enumeration and their corresponding string representations.
10584+
10585+
String mappings: - AWS\\_PLATFORM\\_OS\\_WINDOWS → "Windows" (Microsoft Windows family) - AWS\\_PLATFORM\\_OS\\_MAC → "macOS" (Apple desktop/laptop) - AWS\\_PLATFORM\\_OS\\_IOS → "iOS" (Apple mobile platforms, covers iOS, watchOS, tvOS, and other non-macOS Apple platforms) - AWS\\_PLATFORM\\_OS\\_ANDROID → "Android" (Google Android) - AWS\\_PLATFORM\\_OS\\_UNIX → "Unix" (Linux, BSD, other Unix-like)
1053210586
"""
1053310587
@cenum aws_platform_os::UInt32 begin
1053410588
AWS_PLATFORM_OS_WINDOWS = 0
1053510589
AWS_PLATFORM_OS_MAC = 1
10536-
AWS_PLATFORM_OS_UNIX = 2
10590+
AWS_PLATFORM_OS_IOS = 2
10591+
AWS_PLATFORM_OS_ANDROID = 3
10592+
AWS_PLATFORM_OS_UNIX = 4
1053710593
end
1053810594

1053910595
"""
@@ -10667,6 +10723,20 @@ function aws_get_platform_build_os()
1066710723
ccall((:aws_get_platform_build_os, libaws_c_common), aws_platform_os, ())
1066810724
end
1066910725

10726+
"""
10727+
aws_get_platform_build_os_string()
10728+
10729+
Returns the OS this was built under as a string
10730+
10731+
### Prototype
10732+
```c
10733+
struct aws_byte_cursor aws_get_platform_build_os_string(void);
10734+
```
10735+
"""
10736+
function aws_get_platform_build_os_string()
10737+
ccall((:aws_get_platform_build_os_string, libaws_c_common), aws_byte_cursor, ())
10738+
end
10739+
1067010740
"""
1067110741
aws_system_info_processor_count()
1067210742
@@ -10877,31 +10947,39 @@ A scheduled function.
1087710947
const aws_task_fn = Cvoid
1087810948

1087910949
"""
10880-
union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)
10950+
__JL_Ctag_17
1088110951
1088210952
honor the ABI compat
1088310953
"""
10884-
struct var"union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)"
10954+
struct __JL_Ctag_17
1088510955
data::NTuple{8, UInt8}
1088610956
end
1088710957

10888-
function Base.getproperty(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)"}, f::Symbol)
10958+
function Base.getproperty(x::Ptr{__JL_Ctag_17}, f::Symbol)
1088910959
f === :scheduled && return Ptr{Bool}(x + 0)
1089010960
f === :reserved && return Ptr{Csize_t}(x + 0)
1089110961
return getfield(x, f)
1089210962
end
1089310963

10894-
function Base.getproperty(x::var"union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)", f::Symbol)
10895-
r = Ref{var"union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)"}(x)
10896-
ptr = Base.unsafe_convert(Ptr{var"union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)"}, r)
10964+
function Base.getproperty(x::__JL_Ctag_17, f::Symbol)
10965+
r = Ref{__JL_Ctag_17}(x)
10966+
ptr = Base.unsafe_convert(Ptr{__JL_Ctag_17}, r)
1089710967
fptr = getproperty(ptr, f)
1089810968
GC.@preserve r unsafe_load(fptr)
1089910969
end
1090010970

10901-
function Base.setproperty!(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)"}, f::Symbol, v)
10971+
function Base.setproperty!(x::Ptr{__JL_Ctag_17}, f::Symbol, v)
1090210972
unsafe_store!(getproperty(x, f), v)
1090310973
end
1090410974

10975+
function Base.propertynames(x::__JL_Ctag_17, private::Bool = false)
10976+
(:scheduled, :reserved, if private
10977+
fieldnames(typeof(x))
10978+
else
10979+
()
10980+
end...)
10981+
end
10982+
1090510983
"""
1090610984
aws_task
1090710985
@@ -10918,7 +10996,7 @@ function Base.getproperty(x::Ptr{aws_task}, f::Symbol)
1091810996
f === :node && return Ptr{aws_linked_list_node}(x + 24)
1091910997
f === :priority_queue_node && return Ptr{aws_priority_queue_node}(x + 40)
1092010998
f === :type_tag && return Ptr{Ptr{Cchar}}(x + 48)
10921-
f === :abi_extension && return Ptr{var"union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)"}(x + 56)
10999+
f === :abi_extension && return Ptr{__JL_Ctag_17}(x + 56)
1092211000
return getfield(x, f)
1092311001
end
1092411002

@@ -10933,6 +11011,14 @@ function Base.setproperty!(x::Ptr{aws_task}, f::Symbol, v)
1093311011
unsafe_store!(getproperty(x, f), v)
1093411012
end
1093511013

11014+
function Base.propertynames(x::aws_task, private::Bool = false)
11015+
(:fn, :arg, :timestamp, :node, :priority_queue_node, :type_tag, :abi_extension, if private
11016+
fieldnames(typeof(x))
11017+
else
11018+
()
11019+
end...)
11020+
end
11021+
1093611022
"""
1093711023
aws_task_scheduler
1093811024

0 commit comments

Comments
 (0)