rt: adding uv_freeaddrinfo binding and tweek signature for uv_getaddrinfo

This commit is contained in:
Jeff Olson 2012-06-25 08:01:19 -07:00 committed by Brian Anderson
parent 467e4fba33
commit bcc341f5fb
2 changed files with 9 additions and 2 deletions

View File

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

View File

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