pipewire_native_spa/
flags.rs

1// SPDX-License-Identifier: MIT
2// SPDX-FileCopyrightText: Copyright (c) 2025 Asymptotic Inc.
3// SPDX-FileCopyrightText: Copyright (c) 2025 Arun Raghavan
4// SPDX-FileCopyrightText: Copyright (c) 2025 Sanchayan Maity
5
6use bitflags::bitflags;
7
8bitflags! {
9    #[repr(C)]
10    #[derive(Debug, Clone, Copy, PartialEq, Eq)]
11    pub struct Io: u32 {
12        const IN  = (1 << 0);
13        const OUT = (1 << 2);
14        const ERR = (1 << 3);
15        const HUP = (1 << 4);
16    }
17}
18
19bitflags! {
20    #[repr(C)]
21    #[derive(Debug, Clone, Copy, PartialEq, Eq)]
22    pub struct Fd: u32 {
23        const CLOEXEC             = (1 << 0);
24        const NONBLOCK            = (1 << 1);
25        const EVENT_SEMAPHORE     = (1 << 2);
26        const TIMER_ABSTIME       = (1 << 3);
27        const TIMER_CANCEL_ON_SET = (1 << 4);
28    }
29}