about summary refs log tree commit diff
path: root/src/rt/rust_uv.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-09-06 02:31:02 -0700
committerbors <bors@rust-lang.org>2013-09-06 02:31:02 -0700
commit25ed29a0edb3d48fef843a0b818ee68faf2252da (patch)
treecb046f4d81aed8b3f3677aa29e34a78b6a001baf /src/rt/rust_uv.cpp
parentb650da1673370b58d648fb99708e9dfcbbf79689 (diff)
parent807408b708a11c9a96b2dc4fedd611276273574f (diff)
downloadrust-25ed29a0edb3d48fef843a0b818ee68faf2252da.tar.gz
rust-25ed29a0edb3d48fef843a0b818ee68faf2252da.zip
auto merge of #9000 : brson/rust/dns, r=anasazi
This exposes a very simple function for resolving host names. There's a lot more that needs to be done, but this is probably enough for servo to get started connecting to real websites again.
Diffstat (limited to 'src/rt/rust_uv.cpp')
-rw-r--r--src/rt/rust_uv.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rt/rust_uv.cpp b/src/rt/rust_uv.cpp
index 8ef4572f810..ac5ea4bb3b3 100644
--- a/src/rt/rust_uv.cpp
+++ b/src/rt/rust_uv.cpp
@@ -553,3 +553,8 @@ extern "C" uv_loop_t*
 rust_uv_get_loop_from_fs_req(uv_fs_t* req) {
   return req->loop;
 }
+
+extern "C" uv_loop_t*
+rust_uv_get_loop_from_getaddrinfo_req(uv_getaddrinfo_t* req) {
+  return req->loop;
+}