summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/file_descriptor.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libcamera/file_descriptor.h b/include/libcamera/file_descriptor.h
index 8612f865..d514aac7 100644
--- a/include/libcamera/file_descriptor.h
+++ b/include/libcamera/file_descriptor.h
@@ -14,7 +14,8 @@ namespace libcamera {
class FileDescriptor final
{
public:
- explicit FileDescriptor(int fd = -1);
+ explicit FileDescriptor(const int &fd = -1);
+ explicit FileDescriptor(int &&fd);
FileDescriptor(const FileDescriptor &other);
FileDescriptor(FileDescriptor &&other);
~FileDescriptor();
@@ -30,7 +31,7 @@ private:
class Descriptor
{
public:
- Descriptor(int fd);
+ Descriptor(int fd, bool duplicate);
~Descriptor();
int fd() const { return fd_; }