use std::ffi::OsStr;
use endpoint_sec_sys::es_event_file_provider_update_t;
use crate::File;
#[doc(alias = "es_event_file_provider_update_t")]
pub struct EventFileProviderUpdate<'a> {
pub(crate) raw: &'a es_event_file_provider_update_t,
}
impl<'a> EventFileProviderUpdate<'a> {
#[inline(always)]
pub fn source(&self) -> File<'a> {
File::new(unsafe { self.raw.source() })
}
#[inline(always)]
pub fn target_path(&self) -> &'a OsStr {
unsafe { self.raw.target_path.as_os_str() }
}
}
unsafe impl Send for EventFileProviderUpdate<'_> {}
impl_debug_eq_hash_with_functions!(EventFileProviderUpdate<'a>; source, target_path);