pub mod api;
pub mod errors;
pub mod flags;
pub mod types;
#[cfg(test)]
mod tests {
use super::*;
use flags::*;
#[test]
fn test_consts() {
assert_eq!(FAN_ACCESS, 0x00000001);
assert_eq!(FAN_ACCESS, 0x00000001);
assert_eq!(FAN_MODIFY, 0x00000002);
assert_eq!(FAN_ATTRIB, 0x00000004);
assert_eq!(FAN_CLOSE_WRITE, 0x00000008);
assert_eq!(FAN_CLOSE_NOWRITE, 0x00000010);
assert_eq!(FAN_OPEN, 0x00000020);
assert_eq!(FAN_MOVED_FROM, 0x00000040);
assert_eq!(FAN_MOVED_TO, 0x00000080);
assert_eq!(FAN_CREATE, 0x00000100);
assert_eq!(FAN_DELETE, 0x00000200);
assert_eq!(FAN_DELETE_SELF, 0x00000400);
assert_eq!(FAN_MOVE_SELF, 0x00000800);
assert_eq!(FAN_OPEN_EXEC, 0x00001000);
assert_eq!(FAN_Q_OVERFLOW, 0x00004000);
assert_eq!(FAN_FS_ERROR, 0x00008000);
assert_eq!(FAN_OPEN_PERM, 0x00010000);
assert_eq!(FAN_ACCESS_PERM, 0x00020000);
assert_eq!(FAN_OPEN_EXEC_PERM, 0x00040000);
assert_eq!(FAN_EVENT_ON_CHILD, 0x08000000);
assert_eq!(FAN_RENAME, 0x10000000);
assert_eq!(FAN_ONDIR, 0x40000000);
assert_eq!(FAN_CLOSE, (FAN_CLOSE_WRITE | FAN_CLOSE_NOWRITE));
assert_eq!(FAN_MOVE, (FAN_MOVED_FROM | FAN_MOVED_TO));
assert_eq!(FAN_CLOEXEC, 0x00000001);
assert_eq!(FAN_NONBLOCK, 0x00000002);
assert_eq!(FAN_CLASS_NOTIF, 0x00000000);
assert_eq!(FAN_CLASS_CONTENT, 0x00000004);
assert_eq!(FAN_CLASS_PRE_CONTENT, 0x00000008);
}
}