device: make write public but hidden

This commit is contained in:
meh 2016-04-30 22:54:02 +02:00
parent 661c968d60
commit f9ff9117ac

View File

@ -18,7 +18,8 @@ impl Device {
} }
} }
fn write(&mut self, kind: c_int, code: c_int, value: c_int) -> Res<()> { #[doc(hidden)]
pub fn write(&mut self, kind: c_int, code: c_int, value: c_int) -> Res<()> {
unsafe { unsafe {
let mut event = input_event { let mut event = input_event {
time: timeval { tv_sec: 0, tv_usec: 0 }, time: timeval { tv_sec: 0, tv_usec: 0 },