Skip to content

Commit

Permalink
Fix struct and functions for extensions (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
gryumov committed Jan 17, 2025
1 parent 9fc3ff0 commit b8debbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Libwebsockets"
uuid = "30a1cee6-c274-443c-b274-d8ea34e8f87d"
version = "1.0.1"
version = "1.0.2"

[deps]
libwebsockets_jll = "b6b84edf-6aef-5ff6-9b66-656961a84a09"
Expand Down
2 changes: 1 addition & 1 deletion src/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ function lws_ext_parse_options(ext, wsi, ext_user, opts, o, len)
end

function lws_extension_callback_pm_deflate(context, ext, wsi, reason, user, in, len)
ccall((:lws_extension_callback_pm_deflate, libwebsockets), Cint, (Ptr{LwsContext}, Ptr{LwsExtension}, Ptr{Lws}, Cuint, Ptr{Cvoid}, Ptr{Cvoid}, Csize_t), context, ext, wsi, reason, user, in, len)
ccall((:lws_extension_callback_pm_deflate, libwebsockets), Cint, (Ptr{LwsContext}, Ptr{LwsExtension}, Ptr{Lws}, Cint, Ptr{Cvoid}, Ptr{Cvoid}, Csize_t), context, ext, wsi, reason, user, in, len)
end

function lws_vhost_name_to_protocol(vh, name)
Expand Down
2 changes: 1 addition & 1 deletion src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Base.@kwdef mutable struct LwsExtOptionArg
len::Cint = 0
end

Base.@kwdef mutable struct LwsExtension
Base.@kwdef struct LwsExtension
name::Ptr{Cchar} = C_NULL
callback::Ptr{Cvoid} = C_NULL
client_offer::Ptr{Cchar} = C_NULL
Expand Down

2 comments on commit b8debbf

@gryumov
Copy link
Member Author

Choose a reason for hiding this comment

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

@JuliaRegistrator register()

Release notes:

Fix struct and functions for extensions

@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/123202

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.0.2 -m "<description of version>" b8debbf963cc0aa851208d2a36139d53d262f2f5
git push origin v1.0.2

Please sign in to comment.