use endpoint_sec_sys::es_event_exchangedata_t;
use crate::File;
#[doc(alias = "es_event_exchangedata_t")]
pub struct EventExchangeData<'a> {
pub(crate) raw: &'a es_event_exchangedata_t,
}
impl<'a> EventExchangeData<'a> {
#[inline(always)]
pub fn file1(&self) -> File<'_> {
File::new(unsafe { self.raw.file1() })
}
#[inline(always)]
pub fn file2(&self) -> File<'_> {
File::new(unsafe { self.raw.file2() })
}
}
unsafe impl Send for EventExchangeData<'_> {}
impl_debug_eq_hash_with_functions!(EventExchangeData<'a>; file1, file2);