summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/arrow-down.svg
blob: 4f84f627bd0100ef3afb3d935391d8b3227ff1df (plain)
1
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline></svg>
e descriptor wrapper */ #ifndef __LIBCAMERA_FILE_DESCRIPTOR_H__ #define __LIBCAMERA_FILE_DESCRIPTOR_H__ #include <memory> #include <sys/types.h> namespace libcamera { class FileDescriptor final { public: explicit FileDescriptor(const int &fd = -1); explicit FileDescriptor(int &&fd); FileDescriptor(const FileDescriptor &other); FileDescriptor(FileDescriptor &&other); ~FileDescriptor(); FileDescriptor &operator=(const FileDescriptor &other); FileDescriptor &operator=(FileDescriptor &&other); bool isValid() const { return fd_ != nullptr; } int fd() const { return fd_ ? fd_->fd() : -1; } FileDescriptor dup() const; ino_t inode() const; private: class Descriptor { public: Descriptor(int fd, bool duplicate); ~Descriptor(); int fd() const { return fd_; } private: int fd_; }; std::shared_ptr<Descriptor> fd_; }; } /* namespace libcamera */ #endif /* __LIBCAMERA_FILE_DESCRIPTOR_H__ */