about summary refs log tree commit diff
path: root/src/rt
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
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')
-rw-r--r--src/rt/rust_uv.cpp5
-rw-r--r--src/rt/rustrt.def.in1
2 files changed, 6 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;
+}
diff --git a/src/rt/rustrt.def.in b/src/rt/rustrt.def.in
index c1ba0524be9..45109443f06 100644
--- a/src/rt/rustrt.def.in
+++ b/src/rt/rustrt.def.in
@@ -192,3 +192,4 @@ rust_take_change_dir_lock
 rust_drop_change_dir_lock
 rust_get_test_int
 rust_get_task
+rust_uv_get_loop_from_getaddrinfo_req