mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-04 19:11:11 +00:00
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:
parent
487458c9f8
commit
eb056d374a
@ -215,7 +215,7 @@ impl EpollContext {
|
|||||||
Ok(EpollContext { epoll_file })
|
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
|
where
|
||||||
T: AsRawFd,
|
T: AsRawFd,
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user