Skip to content

Commit

Permalink
Add init and managing global defaults to coordinate downstream packag…
Browse files Browse the repository at this point in the history
…es (#5)

* Add init and managing global defaults to coordinate downstream packages

* more work

* more work

* bump version
  • Loading branch information
quinnj authored Jul 16, 2024
1 parent 0b1c713 commit 95faf95
Show file tree
Hide file tree
Showing 18 changed files with 546 additions and 451 deletions.
8 changes: 4 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "LibAwsIO"
uuid = "a5388770-19df-4151-b103-3d71de896ddf"
version = "1.0.0"
version = "1.1.0"

[deps]
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
Expand All @@ -11,9 +11,9 @@ aws_c_io_jll = "13c41daa-f319-5298-b5eb-5754e0170d52"
[compat]
Aqua = "0.7"
CEnum = "0.5"
LibAwsCal = "=1.0.0"
LibAwsCommon = "=1.0.0"
aws_c_io_jll = "=0.14.7"
LibAwsCal = "1.1.0"
LibAwsCommon = "1.2.0"
aws_c_io_jll = "=0.14.12"
julia = "1.6"

[extras]
Expand Down
39 changes: 20 additions & 19 deletions gen/Manifest.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This file is machine-generated - editing it directly is not advised

julia_version = "1.10.2"
julia_version = "1.10.4"
manifest_format = "2.0"
project_hash = "7321921d831b162315f413d8afdaf650cc7c796e"
project_hash = "de54ebb348a0246abc2ead49cdfb36683b6c2007"

[[deps.ArgTools]]
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
Expand Down Expand Up @@ -42,9 +42,9 @@ version = "1.6.0"

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

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

[[deps.HistoricalStdlibVersions]]
git-tree-sha1 = "c8b04a26eaa706b4da6968dfc27ae2d030547cba"
deps = ["Pkg"]
git-tree-sha1 = "d50c73e4abd8f7c58eb76a8884dfd531fa8dac81"
uuid = "6df8b67a-e8a0-4029-b4b7-ac196fe72102"
version = "1.2.2"
version = "2.0.0"

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

[[deps.JLLPrefixes]]
deps = ["Artifacts", "Git", "HistoricalStdlibVersions", "Pkg", "Preferences", "SHA", "Scratch"]
git-tree-sha1 = "c43b83a688b86b33f5b6d8f48d70a41526d845f8"
git-tree-sha1 = "282d4920f56cb8c39f0a0baa5a834db2e78cc991"
uuid = "afc68a34-7891-4c5a-9da1-1c62935e7b0d"
version = "0.3.5"
version = "0.3.11"

[[deps.JLLWrappers]]
deps = ["Artifacts", "Preferences"]
Expand All @@ -84,15 +85,15 @@ version = "1.5.0"

[[deps.LibAwsCal]]
deps = ["CEnum", "LibAwsCommon", "aws_c_cal_jll"]
git-tree-sha1 = "739d946bdf7ebe3cc7b412a8dc8ae899f40621b9"
git-tree-sha1 = "b67ccbeed5cb39d84b293db046b8f7fa7beed310"
uuid = "ef519ef6-af43-41a0-8ac4-eb81328190af"
version = "1.0.0"

[[deps.LibAwsCommon]]
deps = ["CEnum", "aws_c_common_jll"]
git-tree-sha1 = "d8705f05415a487369d5bbfb2ca149c72ffb5609"
git-tree-sha1 = "17d34406ecd3c3f16d1ec298b6abf0a110eb88dc"
uuid = "c6e421ba-b5f8-4792-a1c4-42948de3ed9d"
version = "1.0.0"
version = "1.2.0"

[[deps.LibCURL]]
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
Expand Down Expand Up @@ -149,9 +150,9 @@ version = "1.2.0"

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

[[deps.PCRE2_jll]]
deps = ["Artifacts", "Libdl"]
Expand Down Expand Up @@ -227,15 +228,15 @@ version = "0.6.12+0"

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

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

[[deps.libLLVM_jll]]
deps = ["Artifacts", "Libdl"]
Expand All @@ -254,6 +255,6 @@ version = "17.4.0+2"

[[deps.s2n_tls_jll]]
deps = ["Artifacts", "JLLWrappers", "Libdl"]
git-tree-sha1 = "347948ecd0fa573c52131ff3eca523476b8f4894"
git-tree-sha1 = "5bd86d0df65eb3bbec3176aa41a328ae01a8a005"
uuid = "cddc5d3d-934d-5d3a-9747-62fc12ea3f48"
version = "1.4.12+0"
version = "1.4.17+0"
10 changes: 5 additions & 5 deletions gen/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ aws_c_io_jll = "13c41daa-f319-5298-b5eb-5754e0170d52"
[compat]
Clang = "0.18.3"
JLLPrefixes = "0.3"
LibAwsCal = "=1.0.0"
LibAwsCommon = "=1.0.0"
aws_c_cal_jll = "=0.6.12"
aws_c_common_jll = "=0.9.14"
aws_c_io_jll = "=0.14.7"
LibAwsCal = "1.0.0"
LibAwsCommon = "1.0.0"
aws_c_cal_jll = "0.6.2"
aws_c_common_jll = "0.9.23"
aws_c_io_jll = "0.14.12"
34 changes: 20 additions & 14 deletions lib/aarch64-apple-darwin20.jl
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ end
"""
aws_channel_acquire_message_from_pool(channel, message_type, size_hint)
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.
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.
### Prototype
```c
Expand Down Expand Up @@ -722,7 +722,7 @@ end
"""
aws_channel_slot_acquire_max_message_for_write(slot)
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.
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.
### Prototype
```c
Expand Down Expand Up @@ -1102,6 +1102,7 @@ struct aws_socket_options
keep_alive_timeout_sec::UInt16
keep_alive_max_failed_probes::UInt16
keepalive::Bool
network_interface_name::NTuple{16, Cchar}
end

# typedef void ( aws_tls_on_negotiation_result_fn ) ( struct aws_channel_handler * handler , struct aws_channel_slot * slot , int error_code , void * user_data )
Expand Down Expand Up @@ -1422,24 +1423,24 @@ const aws_socket_on_accept_result_fn = Cvoid
Documentation not found.
"""
struct aws_socket
data::NTuple{336, UInt8}
data::NTuple{352, UInt8}
end

function Base.getproperty(x::Ptr{aws_socket}, f::Symbol)
f === :allocator && return Ptr{Ptr{aws_allocator}}(x + 0)
f === :local_endpoint && return Ptr{aws_socket_endpoint}(x + 8)
f === :remote_endpoint && return Ptr{aws_socket_endpoint}(x + 116)
f === :options && return Ptr{aws_socket_options}(x + 224)
f === :io_handle && return Ptr{aws_io_handle}(x + 248)
f === :event_loop && return Ptr{Ptr{aws_event_loop}}(x + 264)
f === :handler && return Ptr{Ptr{aws_channel_handler}}(x + 272)
f === :state && return Ptr{Cint}(x + 280)
f === :readable_fn && return Ptr{Ptr{aws_socket_on_readable_fn}}(x + 288)
f === :readable_user_data && return Ptr{Ptr{Cvoid}}(x + 296)
f === :connection_result_fn && return Ptr{Ptr{aws_socket_on_connection_result_fn}}(x + 304)
f === :accept_result_fn && return Ptr{Ptr{aws_socket_on_accept_result_fn}}(x + 312)
f === :connect_accept_user_data && return Ptr{Ptr{Cvoid}}(x + 320)
f === :impl && return Ptr{Ptr{Cvoid}}(x + 328)
f === :io_handle && return Ptr{aws_io_handle}(x + 264)
f === :event_loop && return Ptr{Ptr{aws_event_loop}}(x + 280)
f === :handler && return Ptr{Ptr{aws_channel_handler}}(x + 288)
f === :state && return Ptr{Cint}(x + 296)
f === :readable_fn && return Ptr{Ptr{aws_socket_on_readable_fn}}(x + 304)
f === :readable_user_data && return Ptr{Ptr{Cvoid}}(x + 312)
f === :connection_result_fn && return Ptr{Ptr{aws_socket_on_connection_result_fn}}(x + 320)
f === :accept_result_fn && return Ptr{Ptr{aws_socket_on_accept_result_fn}}(x + 328)
f === :connect_accept_user_data && return Ptr{Ptr{Cvoid}}(x + 336)
f === :impl && return Ptr{Ptr{Cvoid}}(x + 344)
return getfield(x, f)
end

Expand Down Expand Up @@ -5257,7 +5258,7 @@ end
"""
aws_tls_connection_options_copy(to, from)
Copies 'from' to 'to'
Cleans up 'to' and copies 'from' to 'to'. 'to' must be initialized.
### Prototype
```c
Expand Down Expand Up @@ -6730,6 +6731,11 @@ Documentation not found.
"""
const aws_pcks11_lib_behavior = aws_pkcs11_lib_behavior

"""
Documentation not found.
"""
const AWS_NETWORK_INTERFACE_NAME_MAX = 16

# Skipping MacroDefinition: AWS_ADDRESS_MAX_LEN sizeof ( ( ( struct sockaddr_un * ) 0 ) -> sun_path )

"""
Expand Down
49 changes: 35 additions & 14 deletions lib/aarch64-linux-gnu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ end
"""
aws_channel_acquire_message_from_pool(channel, message_type, size_hint)
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.
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.
### Prototype
```c
Expand Down Expand Up @@ -722,7 +722,7 @@ end
"""
aws_channel_slot_acquire_max_message_for_write(slot)
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.
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.
### Prototype
```c
Expand Down Expand Up @@ -1102,6 +1102,7 @@ struct aws_socket_options
keep_alive_timeout_sec::UInt16
keep_alive_max_failed_probes::UInt16
keepalive::Bool
network_interface_name::NTuple{16, Cchar}
end

# typedef void ( aws_tls_on_negotiation_result_fn ) ( struct aws_channel_handler * handler , struct aws_channel_slot * slot , int error_code , void * user_data )
Expand Down Expand Up @@ -1422,24 +1423,24 @@ const aws_socket_on_accept_result_fn = Cvoid
Documentation not found.
"""
struct aws_socket
data::NTuple{344, UInt8}
data::NTuple{360, UInt8}
end

function Base.getproperty(x::Ptr{aws_socket}, f::Symbol)
f === :allocator && return Ptr{Ptr{aws_allocator}}(x + 0)
f === :local_endpoint && return Ptr{aws_socket_endpoint}(x + 8)
f === :remote_endpoint && return Ptr{aws_socket_endpoint}(x + 120)
f === :options && return Ptr{aws_socket_options}(x + 232)
f === :io_handle && return Ptr{aws_io_handle}(x + 256)
f === :event_loop && return Ptr{Ptr{aws_event_loop}}(x + 272)
f === :handler && return Ptr{Ptr{aws_channel_handler}}(x + 280)
f === :state && return Ptr{Cint}(x + 288)
f === :readable_fn && return Ptr{Ptr{aws_socket_on_readable_fn}}(x + 296)
f === :readable_user_data && return Ptr{Ptr{Cvoid}}(x + 304)
f === :connection_result_fn && return Ptr{Ptr{aws_socket_on_connection_result_fn}}(x + 312)
f === :accept_result_fn && return Ptr{Ptr{aws_socket_on_accept_result_fn}}(x + 320)
f === :connect_accept_user_data && return Ptr{Ptr{Cvoid}}(x + 328)
f === :impl && return Ptr{Ptr{Cvoid}}(x + 336)
f === :io_handle && return Ptr{aws_io_handle}(x + 272)
f === :event_loop && return Ptr{Ptr{aws_event_loop}}(x + 288)
f === :handler && return Ptr{Ptr{aws_channel_handler}}(x + 296)
f === :state && return Ptr{Cint}(x + 304)
f === :readable_fn && return Ptr{Ptr{aws_socket_on_readable_fn}}(x + 312)
f === :readable_user_data && return Ptr{Ptr{Cvoid}}(x + 320)
f === :connection_result_fn && return Ptr{Ptr{aws_socket_on_connection_result_fn}}(x + 328)
f === :accept_result_fn && return Ptr{Ptr{aws_socket_on_accept_result_fn}}(x + 336)
f === :connect_accept_user_data && return Ptr{Ptr{Cvoid}}(x + 344)
f === :impl && return Ptr{Ptr{Cvoid}}(x + 352)
return getfield(x, f)
end

Expand Down Expand Up @@ -5254,7 +5255,7 @@ end
"""
aws_tls_connection_options_copy(to, from)
Copies 'from' to 'to'
Cleans up 'to' and copies 'from' to 'to'. 'to' must be initialized.
### Prototype
```c
Expand Down Expand Up @@ -6717,6 +6718,21 @@ function aws_input_stream_new_tester(alloc, options)
ccall((:aws_input_stream_new_tester, libaws_c_io), Ptr{aws_input_stream}, (Ptr{aws_allocator}, Ptr{aws_input_stream_tester_options}), alloc, options)
end

"""
__pthread_mutex_s
Documentation not found.
"""
struct __pthread_mutex_s
__lock::Cint
__count::Cuint
__owner::Cint
__nusers::Cuint
__kind::Cint
__spins::Cint
__list::__pthread_list_t
end

"""
__JL_Ctag_710
Expand Down Expand Up @@ -6766,6 +6782,11 @@ Documentation not found.
"""
const aws_pcks11_lib_behavior = aws_pkcs11_lib_behavior

"""
Documentation not found.
"""
const AWS_NETWORK_INTERFACE_NAME_MAX = 16

# Skipping MacroDefinition: AWS_ADDRESS_MAX_LEN sizeof ( ( ( struct sockaddr_un * ) 0 ) -> sun_path )

"""
Expand Down
Loading

2 comments on commit 95faf95

@quinnj
Copy link
Member Author

@quinnj quinnj commented on 95faf95 Jul 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/111136

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.1.0 -m "<description of version>" 95faf950b536969145ea982f98c9ded7c2c234ee
git push origin v1.1.0

Please sign in to comment.