Skip to content

Commit 95faf95

Browse files
authored
Add init and managing global defaults to coordinate downstream packages (#5)
* Add init and managing global defaults to coordinate downstream packages * more work * more work * bump version
1 parent 0b1c713 commit 95faf95

18 files changed

+546
-451
lines changed

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "LibAwsIO"
22
uuid = "a5388770-19df-4151-b103-3d71de896ddf"
3-
version = "1.0.0"
3+
version = "1.1.0"
44

55
[deps]
66
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
@@ -11,9 +11,9 @@ aws_c_io_jll = "13c41daa-f319-5298-b5eb-5754e0170d52"
1111
[compat]
1212
Aqua = "0.7"
1313
CEnum = "0.5"
14-
LibAwsCal = "=1.0.0"
15-
LibAwsCommon = "=1.0.0"
16-
aws_c_io_jll = "=0.14.7"
14+
LibAwsCal = "1.1.0"
15+
LibAwsCommon = "1.2.0"
16+
aws_c_io_jll = "=0.14.12"
1717
julia = "1.6"
1818

1919
[extras]

gen/Manifest.toml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file is machine-generated - editing it directly is not advised
22

3-
julia_version = "1.10.2"
3+
julia_version = "1.10.4"
44
manifest_format = "2.0"
5-
project_hash = "7321921d831b162315f413d8afdaf650cc7c796e"
5+
project_hash = "de54ebb348a0246abc2ead49cdfb36683b6c2007"
66

77
[[deps.ArgTools]]
88
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
@@ -42,9 +42,9 @@ version = "1.6.0"
4242

4343
[[deps.Expat_jll]]
4444
deps = ["Artifacts", "JLLWrappers", "Libdl"]
45-
git-tree-sha1 = "4558ab818dcceaab612d1bb8c19cee87eda2b83c"
45+
git-tree-sha1 = "1c6317308b9dc757616f0b5cb379db10494443a7"
4646
uuid = "2e619515-83b5-522b-bb60-26c02a35a201"
47-
version = "2.5.0+0"
47+
version = "2.6.2+0"
4848

4949
[[deps.FileWatching]]
5050
uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"
@@ -62,19 +62,20 @@ uuid = "f8c6e375-362e-5223-8a59-34ff63f689eb"
6262
version = "2.44.0+2"
6363

6464
[[deps.HistoricalStdlibVersions]]
65-
git-tree-sha1 = "c8b04a26eaa706b4da6968dfc27ae2d030547cba"
65+
deps = ["Pkg"]
66+
git-tree-sha1 = "d50c73e4abd8f7c58eb76a8884dfd531fa8dac81"
6667
uuid = "6df8b67a-e8a0-4029-b4b7-ac196fe72102"
67-
version = "1.2.2"
68+
version = "2.0.0"
6869

6970
[[deps.InteractiveUtils]]
7071
deps = ["Markdown"]
7172
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
7273

7374
[[deps.JLLPrefixes]]
7475
deps = ["Artifacts", "Git", "HistoricalStdlibVersions", "Pkg", "Preferences", "SHA", "Scratch"]
75-
git-tree-sha1 = "c43b83a688b86b33f5b6d8f48d70a41526d845f8"
76+
git-tree-sha1 = "282d4920f56cb8c39f0a0baa5a834db2e78cc991"
7677
uuid = "afc68a34-7891-4c5a-9da1-1c62935e7b0d"
77-
version = "0.3.5"
78+
version = "0.3.11"
7879

7980
[[deps.JLLWrappers]]
8081
deps = ["Artifacts", "Preferences"]
@@ -84,15 +85,15 @@ version = "1.5.0"
8485

8586
[[deps.LibAwsCal]]
8687
deps = ["CEnum", "LibAwsCommon", "aws_c_cal_jll"]
87-
git-tree-sha1 = "739d946bdf7ebe3cc7b412a8dc8ae899f40621b9"
88+
git-tree-sha1 = "b67ccbeed5cb39d84b293db046b8f7fa7beed310"
8889
uuid = "ef519ef6-af43-41a0-8ac4-eb81328190af"
8990
version = "1.0.0"
9091

9192
[[deps.LibAwsCommon]]
9293
deps = ["CEnum", "aws_c_common_jll"]
93-
git-tree-sha1 = "d8705f05415a487369d5bbfb2ca149c72ffb5609"
94+
git-tree-sha1 = "17d34406ecd3c3f16d1ec298b6abf0a110eb88dc"
9495
uuid = "c6e421ba-b5f8-4792-a1c4-42948de3ed9d"
95-
version = "1.0.0"
96+
version = "1.2.0"
9697

9798
[[deps.LibCURL]]
9899
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
@@ -149,9 +150,9 @@ version = "1.2.0"
149150

150151
[[deps.OpenSSL_jll]]
151152
deps = ["Artifacts", "JLLWrappers", "Libdl"]
152-
git-tree-sha1 = "3da7367955dcc5c54c1ba4d402ccdc09a1a3e046"
153+
git-tree-sha1 = "a028ee3cb5641cccc4c24e90c36b0a4f7707bdf5"
153154
uuid = "458c3c95-2e84-50aa-8efc-19380b2a3a95"
154-
version = "3.0.13+1"
155+
version = "3.0.14+0"
155156

156157
[[deps.PCRE2_jll]]
157158
deps = ["Artifacts", "Libdl"]
@@ -227,15 +228,15 @@ version = "0.6.12+0"
227228

228229
[[deps.aws_c_common_jll]]
229230
deps = ["Artifacts", "JLLWrappers", "Libdl"]
230-
git-tree-sha1 = "586a1aa2fdda172c45587b52f5329fedde14f44c"
231+
git-tree-sha1 = "68d3a903076819904e9e27d077b59b95fcca44e0"
231232
uuid = "73048d1d-b8c4-5092-a58d-866c5e8d1e50"
232-
version = "0.9.14+0"
233+
version = "0.9.23+0"
233234

234235
[[deps.aws_c_io_jll]]
235236
deps = ["Artifacts", "JLLWrappers", "Libdl", "aws_c_cal_jll", "aws_c_common_jll", "s2n_tls_jll"]
236-
git-tree-sha1 = "8fe3ec4e9c43725e9df637fdd5a6846abc40f7bb"
237+
git-tree-sha1 = "1a0786a5b3c65542c41688db2a4f9f39d0ed93a2"
237238
uuid = "13c41daa-f319-5298-b5eb-5754e0170d52"
238-
version = "0.14.7+0"
239+
version = "0.14.12+0"
239240

240241
[[deps.libLLVM_jll]]
241242
deps = ["Artifacts", "Libdl"]
@@ -254,6 +255,6 @@ version = "17.4.0+2"
254255

255256
[[deps.s2n_tls_jll]]
256257
deps = ["Artifacts", "JLLWrappers", "Libdl"]
257-
git-tree-sha1 = "347948ecd0fa573c52131ff3eca523476b8f4894"
258+
git-tree-sha1 = "5bd86d0df65eb3bbec3176aa41a328ae01a8a005"
258259
uuid = "cddc5d3d-934d-5d3a-9747-62fc12ea3f48"
259-
version = "1.4.12+0"
260+
version = "1.4.17+0"

gen/Project.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ aws_c_io_jll = "13c41daa-f319-5298-b5eb-5754e0170d52"
1010
[compat]
1111
Clang = "0.18.3"
1212
JLLPrefixes = "0.3"
13-
LibAwsCal = "=1.0.0"
14-
LibAwsCommon = "=1.0.0"
15-
aws_c_cal_jll = "=0.6.12"
16-
aws_c_common_jll = "=0.9.14"
17-
aws_c_io_jll = "=0.14.7"
13+
LibAwsCal = "1.0.0"
14+
LibAwsCommon = "1.0.0"
15+
aws_c_cal_jll = "0.6.2"
16+
aws_c_common_jll = "0.9.23"
17+
aws_c_io_jll = "0.14.12"

lib/aarch64-apple-darwin20.jl

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ end
522522
"""
523523
aws_channel_acquire_message_from_pool(channel, message_type, size_hint)
524524
525-
Acquires a message from the event loop's message pool. size\\_hint is merely a hint, it may be smaller than you requested and you are responsible for checking the bounds of it. If the returned message is not large enough, you must send multiple messages.
525+
Acquires a message from the event loop's message pool. size\\_hint is merely a hint, it may be smaller than you requested and you are responsible for checking the bounds of it. If the returned message is not large enough, you must send multiple messages. This cannot fail, it never returns NULL.
526526
527527
### Prototype
528528
```c
@@ -722,7 +722,7 @@ end
722722
"""
723723
aws_channel_slot_acquire_max_message_for_write(slot)
724724
725-
Convenience function that invokes [`aws_channel_acquire_message_from_pool`](@ref)(), asking for the largest reasonable DATA message that can be sent in the write direction, with upstream overhead accounted for.
725+
Convenience function that invokes [`aws_channel_acquire_message_from_pool`](@ref)(), asking for the largest reasonable DATA message that can be sent in the write direction, with upstream overhead accounted for. This cannot fail, it never returns NULL.
726726
727727
### Prototype
728728
```c
@@ -1102,6 +1102,7 @@ struct aws_socket_options
11021102
keep_alive_timeout_sec::UInt16
11031103
keep_alive_max_failed_probes::UInt16
11041104
keepalive::Bool
1105+
network_interface_name::NTuple{16, Cchar}
11051106
end
11061107

11071108
# typedef void ( aws_tls_on_negotiation_result_fn ) ( struct aws_channel_handler * handler , struct aws_channel_slot * slot , int error_code , void * user_data )
@@ -1422,24 +1423,24 @@ const aws_socket_on_accept_result_fn = Cvoid
14221423
Documentation not found.
14231424
"""
14241425
struct aws_socket
1425-
data::NTuple{336, UInt8}
1426+
data::NTuple{352, UInt8}
14261427
end
14271428

14281429
function Base.getproperty(x::Ptr{aws_socket}, f::Symbol)
14291430
f === :allocator && return Ptr{Ptr{aws_allocator}}(x + 0)
14301431
f === :local_endpoint && return Ptr{aws_socket_endpoint}(x + 8)
14311432
f === :remote_endpoint && return Ptr{aws_socket_endpoint}(x + 116)
14321433
f === :options && return Ptr{aws_socket_options}(x + 224)
1433-
f === :io_handle && return Ptr{aws_io_handle}(x + 248)
1434-
f === :event_loop && return Ptr{Ptr{aws_event_loop}}(x + 264)
1435-
f === :handler && return Ptr{Ptr{aws_channel_handler}}(x + 272)
1436-
f === :state && return Ptr{Cint}(x + 280)
1437-
f === :readable_fn && return Ptr{Ptr{aws_socket_on_readable_fn}}(x + 288)
1438-
f === :readable_user_data && return Ptr{Ptr{Cvoid}}(x + 296)
1439-
f === :connection_result_fn && return Ptr{Ptr{aws_socket_on_connection_result_fn}}(x + 304)
1440-
f === :accept_result_fn && return Ptr{Ptr{aws_socket_on_accept_result_fn}}(x + 312)
1441-
f === :connect_accept_user_data && return Ptr{Ptr{Cvoid}}(x + 320)
1442-
f === :impl && return Ptr{Ptr{Cvoid}}(x + 328)
1434+
f === :io_handle && return Ptr{aws_io_handle}(x + 264)
1435+
f === :event_loop && return Ptr{Ptr{aws_event_loop}}(x + 280)
1436+
f === :handler && return Ptr{Ptr{aws_channel_handler}}(x + 288)
1437+
f === :state && return Ptr{Cint}(x + 296)
1438+
f === :readable_fn && return Ptr{Ptr{aws_socket_on_readable_fn}}(x + 304)
1439+
f === :readable_user_data && return Ptr{Ptr{Cvoid}}(x + 312)
1440+
f === :connection_result_fn && return Ptr{Ptr{aws_socket_on_connection_result_fn}}(x + 320)
1441+
f === :accept_result_fn && return Ptr{Ptr{aws_socket_on_accept_result_fn}}(x + 328)
1442+
f === :connect_accept_user_data && return Ptr{Ptr{Cvoid}}(x + 336)
1443+
f === :impl && return Ptr{Ptr{Cvoid}}(x + 344)
14431444
return getfield(x, f)
14441445
end
14451446

@@ -5257,7 +5258,7 @@ end
52575258
"""
52585259
aws_tls_connection_options_copy(to, from)
52595260
5260-
Copies 'from' to 'to'
5261+
Cleans up 'to' and copies 'from' to 'to'. 'to' must be initialized.
52615262
52625263
### Prototype
52635264
```c
@@ -6730,6 +6731,11 @@ Documentation not found.
67306731
"""
67316732
const aws_pcks11_lib_behavior = aws_pkcs11_lib_behavior
67326733

6734+
"""
6735+
Documentation not found.
6736+
"""
6737+
const AWS_NETWORK_INTERFACE_NAME_MAX = 16
6738+
67336739
# Skipping MacroDefinition: AWS_ADDRESS_MAX_LEN sizeof ( ( ( struct sockaddr_un * ) 0 ) -> sun_path )
67346740

67356741
"""

lib/aarch64-linux-gnu.jl

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ end
522522
"""
523523
aws_channel_acquire_message_from_pool(channel, message_type, size_hint)
524524
525-
Acquires a message from the event loop's message pool. size\\_hint is merely a hint, it may be smaller than you requested and you are responsible for checking the bounds of it. If the returned message is not large enough, you must send multiple messages.
525+
Acquires a message from the event loop's message pool. size\\_hint is merely a hint, it may be smaller than you requested and you are responsible for checking the bounds of it. If the returned message is not large enough, you must send multiple messages. This cannot fail, it never returns NULL.
526526
527527
### Prototype
528528
```c
@@ -722,7 +722,7 @@ end
722722
"""
723723
aws_channel_slot_acquire_max_message_for_write(slot)
724724
725-
Convenience function that invokes [`aws_channel_acquire_message_from_pool`](@ref)(), asking for the largest reasonable DATA message that can be sent in the write direction, with upstream overhead accounted for.
725+
Convenience function that invokes [`aws_channel_acquire_message_from_pool`](@ref)(), asking for the largest reasonable DATA message that can be sent in the write direction, with upstream overhead accounted for. This cannot fail, it never returns NULL.
726726
727727
### Prototype
728728
```c
@@ -1102,6 +1102,7 @@ struct aws_socket_options
11021102
keep_alive_timeout_sec::UInt16
11031103
keep_alive_max_failed_probes::UInt16
11041104
keepalive::Bool
1105+
network_interface_name::NTuple{16, Cchar}
11051106
end
11061107

11071108
# typedef void ( aws_tls_on_negotiation_result_fn ) ( struct aws_channel_handler * handler , struct aws_channel_slot * slot , int error_code , void * user_data )
@@ -1422,24 +1423,24 @@ const aws_socket_on_accept_result_fn = Cvoid
14221423
Documentation not found.
14231424
"""
14241425
struct aws_socket
1425-
data::NTuple{344, UInt8}
1426+
data::NTuple{360, UInt8}
14261427
end
14271428

14281429
function Base.getproperty(x::Ptr{aws_socket}, f::Symbol)
14291430
f === :allocator && return Ptr{Ptr{aws_allocator}}(x + 0)
14301431
f === :local_endpoint && return Ptr{aws_socket_endpoint}(x + 8)
14311432
f === :remote_endpoint && return Ptr{aws_socket_endpoint}(x + 120)
14321433
f === :options && return Ptr{aws_socket_options}(x + 232)
1433-
f === :io_handle && return Ptr{aws_io_handle}(x + 256)
1434-
f === :event_loop && return Ptr{Ptr{aws_event_loop}}(x + 272)
1435-
f === :handler && return Ptr{Ptr{aws_channel_handler}}(x + 280)
1436-
f === :state && return Ptr{Cint}(x + 288)
1437-
f === :readable_fn && return Ptr{Ptr{aws_socket_on_readable_fn}}(x + 296)
1438-
f === :readable_user_data && return Ptr{Ptr{Cvoid}}(x + 304)
1439-
f === :connection_result_fn && return Ptr{Ptr{aws_socket_on_connection_result_fn}}(x + 312)
1440-
f === :accept_result_fn && return Ptr{Ptr{aws_socket_on_accept_result_fn}}(x + 320)
1441-
f === :connect_accept_user_data && return Ptr{Ptr{Cvoid}}(x + 328)
1442-
f === :impl && return Ptr{Ptr{Cvoid}}(x + 336)
1434+
f === :io_handle && return Ptr{aws_io_handle}(x + 272)
1435+
f === :event_loop && return Ptr{Ptr{aws_event_loop}}(x + 288)
1436+
f === :handler && return Ptr{Ptr{aws_channel_handler}}(x + 296)
1437+
f === :state && return Ptr{Cint}(x + 304)
1438+
f === :readable_fn && return Ptr{Ptr{aws_socket_on_readable_fn}}(x + 312)
1439+
f === :readable_user_data && return Ptr{Ptr{Cvoid}}(x + 320)
1440+
f === :connection_result_fn && return Ptr{Ptr{aws_socket_on_connection_result_fn}}(x + 328)
1441+
f === :accept_result_fn && return Ptr{Ptr{aws_socket_on_accept_result_fn}}(x + 336)
1442+
f === :connect_accept_user_data && return Ptr{Ptr{Cvoid}}(x + 344)
1443+
f === :impl && return Ptr{Ptr{Cvoid}}(x + 352)
14431444
return getfield(x, f)
14441445
end
14451446

@@ -5254,7 +5255,7 @@ end
52545255
"""
52555256
aws_tls_connection_options_copy(to, from)
52565257
5257-
Copies 'from' to 'to'
5258+
Cleans up 'to' and copies 'from' to 'to'. 'to' must be initialized.
52585259
52595260
### Prototype
52605261
```c
@@ -6717,6 +6718,21 @@ function aws_input_stream_new_tester(alloc, options)
67176718
ccall((:aws_input_stream_new_tester, libaws_c_io), Ptr{aws_input_stream}, (Ptr{aws_allocator}, Ptr{aws_input_stream_tester_options}), alloc, options)
67186719
end
67196720

6721+
"""
6722+
__pthread_mutex_s
6723+
6724+
Documentation not found.
6725+
"""
6726+
struct __pthread_mutex_s
6727+
__lock::Cint
6728+
__count::Cuint
6729+
__owner::Cint
6730+
__nusers::Cuint
6731+
__kind::Cint
6732+
__spins::Cint
6733+
__list::__pthread_list_t
6734+
end
6735+
67206736
"""
67216737
__JL_Ctag_710
67226738
@@ -6766,6 +6782,11 @@ Documentation not found.
67666782
"""
67676783
const aws_pcks11_lib_behavior = aws_pkcs11_lib_behavior
67686784

6785+
"""
6786+
Documentation not found.
6787+
"""
6788+
const AWS_NETWORK_INTERFACE_NAME_MAX = 16
6789+
67696790
# Skipping MacroDefinition: AWS_ADDRESS_MAX_LEN sizeof ( ( ( struct sockaddr_un * ) 0 ) -> sun_path )
67706791

67716792
"""

0 commit comments

Comments
 (0)