summaryrefslogtreecommitdiff
path: root/Documentation/theme/static/css/theme.css
AgeCommit message (Expand)Author
2020-06-09licenses: Add SPDX headers to the website builder and themeLaurent Pinchart
2019-10-23Documentation: theme: css: Really hide toc treesLaurent Pinchart
2019-10-23Documentation: theme: css: Make text darkerLaurent Pinchart
2019-10-23Documentation: Generate local TOC on demandLaurent Pinchart
2019-01-11Documentation: Add custom themeLaurent Pinchart
class="hl ppc">#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__ */