libcamera: v4l2_device: Expose the device node path
Provide a getter method to access the device node path. For video devices it is usually the most informative description. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
617a3aa582
commit
3ab7f65d6f
2 changed files with 7 additions and 0 deletions
|
@ -95,6 +95,7 @@ public:
|
||||||
const char *driverName() const { return caps_.driver(); }
|
const char *driverName() const { return caps_.driver(); }
|
||||||
const char *deviceName() const { return caps_.card(); }
|
const char *deviceName() const { return caps_.card(); }
|
||||||
const char *busName() const { return caps_.bus_info(); }
|
const char *busName() const { return caps_.bus_info(); }
|
||||||
|
const std::string &deviceNode() const { return deviceNode_; }
|
||||||
|
|
||||||
int getFormat(V4L2DeviceFormat *format);
|
int getFormat(V4L2DeviceFormat *format);
|
||||||
int setFormat(V4L2DeviceFormat *format);
|
int setFormat(V4L2DeviceFormat *format);
|
||||||
|
|
|
@ -356,6 +356,12 @@ void V4L2Device::close()
|
||||||
* \return The string containing the device location
|
* \return The string containing the device location
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \fn V4L2Device::deviceNode()
|
||||||
|
* \brief Retrieve the video device node path
|
||||||
|
* \return The video device device node path
|
||||||
|
*/
|
||||||
|
|
||||||
std::string V4L2Device::logPrefix() const
|
std::string V4L2Device::logPrefix() const
|
||||||
{
|
{
|
||||||
return deviceNode_;
|
return deviceNode_;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue