summaryrefslogtreecommitdiff
path: root/src/v4l2/v4l2_camera_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/v4l2/v4l2_camera_file.h')
-rw-r--r--src/v4l2/v4l2_camera_file.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/v4l2/v4l2_camera_file.h b/src/v4l2/v4l2_camera_file.h
index 6c4cb5d8..1a7b6a63 100644
--- a/src/v4l2/v4l2_camera_file.h
+++ b/src/v4l2/v4l2_camera_file.h
@@ -7,6 +7,8 @@
#pragma once
+#include <string>
+
#include <linux/videodev2.h>
class V4L2CameraProxy;
@@ -14,7 +16,8 @@ class V4L2CameraProxy;
class V4L2CameraFile
{
public:
- V4L2CameraFile(int efd, bool nonBlocking, V4L2CameraProxy *proxy);
+ V4L2CameraFile(int dirfd, const char *path, int efd, bool nonBlocking,
+ V4L2CameraProxy *proxy);
~V4L2CameraFile();
V4L2CameraProxy *proxy() const { return proxy_; }
@@ -25,9 +28,12 @@ public:
enum v4l2_priority priority() const { return priority_; }
void setPriority(enum v4l2_priority priority) { priority_ = priority; }
+ const std::string &description() const;
+
private:
V4L2CameraProxy *proxy_;
+ std::string description_;
bool nonBlocking_;
int efd_;
enum v4l2_priority priority_;