device: make write public but hidden

This commit is contained in:
meh 2016-04-30 22:54:02 +02:00
parent 661c968d60
commit f9ff9117ac
1 changed files with 2 additions and 1 deletions

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 {
let mut event = input_event {
time: timeval { tv_sec: 0, tv_usec: 0 },