summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-07-15 11:41:54 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-08-05 20:07:13 +0200
commit1869d1b312e27cd34bb837b61ff674532afbc842 (patch)
tree9d33a8942bf2819f245b0748b6c2e4ab5b497935 /include
parent39efe737746d6da8e4819f41b6e4069c4b09d359 (diff)
libcamera: v4l2_device: Add method to lookup device path
Add a method to lookup a V4L2 devices path in sysfs. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/v4l2_device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libcamera/internal/v4l2_device.h b/include/libcamera/internal/v4l2_device.h
index bf643f2e..3b605aab 100644
--- a/include/libcamera/internal/v4l2_device.h
+++ b/include/libcamera/internal/v4l2_device.h
@@ -30,6 +30,7 @@ public:
int setControls(ControlList *ctrls);
const std::string &deviceNode() const { return deviceNode_; }
+ std::string devicePath() const;
protected:
V4L2Device(const std::string &deviceNode);