use crate::notify::NotifyInfo;
use winfsp_sys::{FSP_FILE_SYSTEM, FspFileSystemNotify};
pub struct Notifier(pub(crate) *mut FSP_FILE_SYSTEM);
impl Notifier {
pub fn notify<const BUFFER_SIZE: usize>(&self, info: &NotifyInfo<BUFFER_SIZE>) {
unsafe {
FspFileSystemNotify(
self.0,
(info as *const NotifyInfo<BUFFER_SIZE>).cast_mut().cast(),
info.size as u64,
)
};
}
}