sched: re-export the wasi types used for times and events

This commit is contained in:
Pat Hickey
2020-09-14 16:27:49 -07:00
parent 6db24fd08f
commit 66ba582bba
3 changed files with 18 additions and 18 deletions

View File

@@ -0,0 +1,17 @@
use crate::entry::EntryHandle;
pub use crate::wasi::types::{
Clockid, Errno, Event, EventFdReadwrite, Eventrwflags, Eventtype, Subclockflags,
SubscriptionClock, Timestamp, Userdata,
};
#[derive(Debug, Copy, Clone)]
pub struct ClockEventData {
pub delay: u128, // delay is expressed in nanoseconds
pub userdata: Userdata,
}
#[derive(Debug)]
pub struct FdEventData {
pub handle: EntryHandle,
pub r#type: Eventtype,
pub userdata: Userdata,
}