-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from blocklessnetwork/feature/refeact
refeact
- Loading branch information
Showing
8 changed files
with
125 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,25 @@ | ||
#[link(wasm_import_module = "blockless_cgi")] | ||
extern "C" { | ||
#[link_name = "cgi_open"] | ||
pub(crate) fn cgi_open( | ||
opts: *const u8, | ||
opts_len: u32, | ||
cgi_handle: *mut u32, | ||
) -> u32; | ||
pub(crate) fn cgi_open(opts: *const u8, opts_len: u32, cgi_handle: *mut u32) -> u32; | ||
|
||
#[link_name = "cgi_stdout_read"] | ||
pub(crate) fn cgi_stdout_read( | ||
handle: u32, | ||
buf: *mut u8, | ||
buf_len: u32, | ||
num: *mut u32, | ||
) -> u32; | ||
pub(crate) fn cgi_stdout_read(handle: u32, buf: *mut u8, buf_len: u32, num: *mut u32) -> u32; | ||
|
||
#[link_name = "cgi_stderr_read"] | ||
pub(crate) fn cgi_stderr_read( | ||
handle: u32, | ||
buf: *mut u8, | ||
buf_len: u32, | ||
num: *mut u32, | ||
) -> u32; | ||
pub(crate) fn cgi_stderr_read(handle: u32, buf: *mut u8, buf_len: u32, num: *mut u32) -> u32; | ||
|
||
#[link_name = "cgi_stdin_write"] | ||
pub(crate) fn cgi_stdin_write( | ||
handle: u32, | ||
buf: *const u8, | ||
buf_len: u32, | ||
num: *mut u32, | ||
) -> u32; | ||
#[allow(dead_code)] | ||
pub(crate) fn cgi_stdin_write(handle: u32, buf: *const u8, buf_len: u32, num: *mut u32) -> u32; | ||
|
||
#[link_name = "cgi_close"] | ||
pub(crate) fn cgi_close( | ||
handle: u32, | ||
) -> u32; | ||
pub(crate) fn cgi_close(handle: u32) -> u32; | ||
|
||
#[link_name = "cgi_list_exec"] | ||
pub(crate) fn cgi_list_exec( | ||
cgi_handle: *mut u32, | ||
) -> u32; | ||
pub(crate) fn cgi_list_exec(cgi_handle: *mut u32) -> u32; | ||
|
||
#[link_name = "cgi_list_read"] | ||
pub(crate) fn cgi_list_read( | ||
handle: u32, | ||
buf: *mut u8, | ||
buf_len: u32, | ||
num: *mut u32, | ||
) -> u32; | ||
|
||
pub(crate) fn cgi_list_read(handle: u32, buf: *mut u8, buf_len: u32, num: *mut u32) -> u32; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
mod cgi; | ||
mod cgi_host; | ||
mod error; | ||
mod http; | ||
mod http_host; | ||
mod cgi_host; | ||
mod cgi; | ||
mod socket_host; | ||
mod socket; | ||
mod socket_host; | ||
|
||
pub use socket::*; | ||
pub use cgi::*; | ||
pub use http::*; | ||
pub use error::*; | ||
pub use http::*; | ||
pub use socket::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
#[link(wasm_import_module = "blockless_socket")] | ||
extern "C" { | ||
#[link_name = "create_tcp_bind_socket"] | ||
pub(crate) fn create_tcp_bind_socket_native(addr: *const u8, addr_len: u32, fd: *mut u32) -> u32; | ||
pub(crate) fn create_tcp_bind_socket_native( | ||
addr: *const u8, | ||
addr_len: u32, | ||
fd: *mut u32, | ||
) -> u32; | ||
} |