rt: adding uv_freeaddrinfo binding and tweek signature for uv_getaddrinfo
This commit is contained in:
parent
467e4fba33
commit
bcc341f5fb
@ -506,10 +506,16 @@ rust_uv_current_kernel_free(void* mem) {
|
||||
}
|
||||
|
||||
extern "C" int
|
||||
rust_uv_getaddrinfo(uv_loop_t* loop, uv_getaddrinfo_t* handle, uv_getaddrinfo_cb cb,
|
||||
const char* node, const char* service, const struct addrinfo* hints) {
|
||||
rust_uv_getaddrinfo(uv_loop_t* loop, uv_getaddrinfo_t* handle,
|
||||
uv_getaddrinfo_cb cb,
|
||||
char* node, char* service,
|
||||
addrinfo* hints) {
|
||||
return uv_getaddrinfo(loop, handle, cb, node, service, hints);
|
||||
}
|
||||
extern "C" void
|
||||
rust_uv_freeaddrinfo(addrinfo* res) {
|
||||
uv_freeaddrinfo(res);
|
||||
}
|
||||
extern "C" bool
|
||||
rust_uv_is_ipv4_addrinfo(addrinfo* input) {
|
||||
// if it aint AF_INET, it's AF_INET6
|
||||
|
@ -157,6 +157,7 @@ rust_uv_get_kernel_global_chan_ptr
|
||||
rust_uv_current_kernel_malloc
|
||||
rust_uv_current_kernel_free
|
||||
rust_uv_getaddrinfo
|
||||
rust_uv_freeaddrinfo
|
||||
rust_dbg_lock_create
|
||||
rust_dbg_lock_destroy
|
||||
rust_dbg_lock_lock
|
||||
|
Loading…
x
Reference in New Issue
Block a user