summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-01 19:35:21 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-02 02:35:36 +0200
commit492019745db1c103270b76686bdb2ccc93a9e954 (patch)
treed73af9e9886fd3ec73dcd63b56633affb8ec2535
parent67dce611e5bf84fd9e4bf29da6f45bd53f64f336 (diff)
libcamera: mediadevice: Make getEntityByName() public
The function is useful as a public API, make it public. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/libcamera/include/media_device.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcamera/include/media_device.h b/src/libcamera/include/media_device.h
index 74a67c81..fd1e12d1 100644
--- a/src/libcamera/include/media_device.h
+++ b/src/libcamera/include/media_device.h
@@ -32,7 +32,9 @@ public:
const std::string driver() const { return driver_; }
const std::string devnode() const { return devnode_; }
+
const std::vector<MediaEntity *> &entities() const { return entities_; }
+ MediaEntity *getEntityByName(const std::string &name);
private:
std::string driver_;
@@ -46,7 +48,6 @@ private:
void clear();
std::vector<MediaEntity *> entities_;
- MediaEntity *getEntityByName(const std::string &name);
bool populateEntities(const struct media_v2_topology &topology);
bool populatePads(const struct media_v2_topology &topology);