Skip to content

Commit

Permalink
Refactor extensions struct and functions (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKlo authored Jan 17, 2025
1 parent 9fc3ff0 commit ac2c70f
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

0 comments on commit ac2c70f

Please sign in to comment.