diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-27 15:10:28 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-31 15:47:35 -0700 |
| commit | 14587f88cac89af655e04d573ead2eb5ab4f37a5 (patch) | |
| tree | 17a5b5ec16166eb27a9148ef9a5d2a2291a8c3f0 /src/libnative/io/timer_timerfd.rs | |
| parent | 5f33588d75966b939df288cf2125e9906e15cf82 (diff) | |
| download | rust-14587f88cac89af655e04d573ead2eb5ab4f37a5.tar.gz rust-14587f88cac89af655e04d573ead2eb5ab4f37a5.zip | |
native: Switch field privacy as necessary
Diffstat (limited to 'src/libnative/io/timer_timerfd.rs')
| -rw-r--r-- | src/libnative/io/timer_timerfd.rs | 20 |
1 files changed, 10 insertions, 10 deletions
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 { |
