diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-12-04 14:58:45 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-12-04 14:58:45 +0100 |
| commit | 6ef91e26588fb3985eaa521c86d2ce2dcb2eabf1 (patch) | |
| tree | 67b98dc117f6d799f3ac8fb2b8cdedf8a1226051 /vendor/curl/curl_websockets.odin | |
| parent | be943e97576e844e2e38ba3dc1d2741052fc254d (diff) | |
Update curl bindings to 8.17dev-2025-12a
Diffstat (limited to 'vendor/curl/curl_websockets.odin')
| -rw-r--r-- | vendor/curl/curl_websockets.odin | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/vendor/curl/curl_websockets.odin b/vendor/curl/curl_websockets.odin index 530631612..7533198d2 100644 --- a/vendor/curl/curl_websockets.odin +++ b/vendor/curl/curl_websockets.odin @@ -59,11 +59,24 @@ foreign lib { * Sends data over the websocket connection. Use after successful * curl_easy_perform() with CURLOPT_CONNECT_ONLY option. */ - ws_send :: proc(curl: CURL, buffer: rawptr, + ws_send :: proc(curl: ^CURL, buffer: rawptr, buflen: c.size_t, sent: ^c.size_t, fragsize: off_t, flags: ws_flags) -> code --- + /* + * NAME curl_ws_start_frame() + * + * DESCRIPTION + * + * Buffers a websocket frame header with the given flags and length. + * Errors when a previous frame is not complete, e.g. not all its + * payload has been added. + */ + ws_start_frame :: proc(curl: ^CURL, + flags: c.uint, + frame_len: off_t) -> code --- + ws_meta :: proc(curl: ^CURL) -> ^ws_frame --- }
\ No newline at end of file |