Skip to content

Commit 8002515

Browse files
committed
helpers: backend_device: Add Node accessor
Allow the application to access the device node class through the BackendDevice object. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
1 parent 7e4b8cd commit 8002515

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/helpers/backend_device.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ class BackendDevice
3030
return valid_;
3131
}
3232

33+
V4l2Device &Node(const std::string &node)
34+
{
35+
return nodes_.at(node);
36+
}
37+
3338
std::map<std::string, V4l2Device::Buffer> AcquireBuffers();
3439
void ReleaseBuffer(const std::map<std::string, V4l2Device::Buffer> &buffers);
3540
V4l2Device::Buffer &ConfigBuffer()

0 commit comments

Comments
 (0)