Type-safe container for enum-based bitfields.
Definition flags.h:16
Helper class to create anonymous files.
Definition memfd.h:16
Seal
Seals for the MemFd::create() function.
Definition memfd.h:18
@ Shrink
Prevent the memfd from shrinking.
Definition memfd.h:20
@ None
No seals (used as default value)
Definition memfd.h:19
@ Grow
Prevent the memfd from growing.
Definition memfd.h:21
static UniqueFD create(const char *name, std::size_t size, Seals seals=Seal::None)
Create an anonymous file.
Definition memfd.cpp:84
Flags< Seal > Seals
A bitwise combination of MemFd::Seal values.
Definition memfd.h:24
unique_ptr-like wrapper for a file descriptor
Definition unique_fd.h:18
#define LIBCAMERA_FLAGS_ENABLE_OPERATORS(_enum)
Enable bitwise operations on the enum enumeration.
Definition flags.h:189
Top-level libcamera namespace.
Definition backtrace.h:17
File descriptor wrapper that owns a file descriptor.