diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-11-03 10:39:39 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-11-10 01:37:10 -0800 |
| commit | 30c885ea52458b361bb8f215c17c384743e6851a (patch) | |
| tree | 71ca222f9536fd2344ee37562848a25954b4198a /src/librustuv/timer.rs | |
| parent | 3851f908d16b55dfe69d5a423ecbef4cd224fae2 (diff) | |
| download | rust-30c885ea52458b361bb8f215c17c384743e6851a.tar.gz rust-30c885ea52458b361bb8f215c17c384743e6851a.zip | |
uv: Remove lots of uv/C++ wrappers
Diffstat (limited to 'src/librustuv/timer.rs')
| -rw-r--r-- | src/librustuv/timer.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustuv/timer.rs b/src/librustuv/timer.rs index 9a693f6a27d..4fc4934bf65 100644 --- a/src/librustuv/timer.rs +++ b/src/librustuv/timer.rs @@ -21,7 +21,7 @@ impl TimerWatcher { unsafe { let handle = uvll::malloc_handle(uvll::UV_TIMER); assert!(handle.is_not_null()); - assert!(0 == uvll::timer_init(loop_.native_handle(), handle)); + assert!(0 == uvll::uv_timer_init(loop_.native_handle(), handle)); let mut watcher: TimerWatcher = NativeHandle::from_native_handle(handle); watcher.install_watcher_data(); return watcher; @@ -35,7 +35,7 @@ impl TimerWatcher { } unsafe { - uvll::timer_start(self.native_handle(), timer_cb, timeout, repeat); + uvll::uv_timer_start(self.native_handle(), timer_cb, timeout, repeat); } extern fn timer_cb(handle: *uvll::uv_timer_t, status: c_int) { @@ -49,7 +49,7 @@ impl TimerWatcher { pub fn stop(&mut self) { unsafe { - uvll::timer_stop(self.native_handle()); + uvll::uv_timer_stop(self.native_handle()); } } } |
