From 14587f88cac89af655e04d573ead2eb5ab4f37a5 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 27 Mar 2014 15:10:28 -0700 Subject: native: Switch field privacy as necessary --- src/libnative/io/timer_timerfd.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/libnative/io/timer_timerfd.rs') diff --git a/src/libnative/io/timer_timerfd.rs b/src/libnative/io/timer_timerfd.rs index a8018bec0a6..d7202d9d765 100644 --- a/src/libnative/io/timer_timerfd.rs +++ b/src/libnative/io/timer_timerfd.rs @@ -40,8 +40,8 @@ use io::IoResult; use io::timer_helper; pub struct Timer { - priv fd: FileDesc, - priv on_worker: bool, + fd: FileDesc, + on_worker: bool, } #[allow(visible_private_types)] @@ -285,24 +285,24 @@ mod imp { #[cfg(target_arch = "x86_64")] #[packed] pub struct epoll_event { - events: u32, - data: i64, + pub events: u32, + pub data: i64, } #[cfg(not(target_arch = "x86_64"))] pub struct epoll_event { - events: u32, - data: i64, + pub events: u32, + pub data: i64, } pub struct timespec { - tv_sec: libc::time_t, - tv_nsec: libc::c_long, + pub tv_sec: libc::time_t, + pub tv_nsec: libc::c_long, } pub struct itimerspec { - it_interval: timespec, - it_value: timespec, + pub it_interval: timespec, + pub it_value: timespec, } extern { -- cgit 1.4.1-3-g733a5