vmm: Make 'EpollContext::add_event()' public

So that it can be reused by other crate, e.g. from fuzz targets.

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen 2022-07-28 21:04:28 -07:00 committed by Rob Bradford
parent 487458c9f8
commit eb056d374a

View File

@ -215,7 +215,7 @@ impl EpollContext {
Ok(EpollContext { epoll_file })
}
fn add_event<T>(&mut self, fd: &T, token: EpollDispatch) -> result::Result<(), io::Error>
pub fn add_event<T>(&mut self, fd: &T, token: EpollDispatch) -> result::Result<(), io::Error>
where
T: AsRawFd,
{