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>
This commit is contained in:
Niklas Söderlund
2020-07-15 11:41:54 +02:00
parent 39efe73774
commit 1869d1b312
2 changed files with 32 additions and 0 deletions

View File

@@ -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);