diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-01-01 19:35:21 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-01-02 02:35:36 +0200 |
commit | 492019745db1c103270b76686bdb2ccc93a9e954 (patch) | |
tree | d73af9e9886fd3ec73dcd63b56633affb8ec2535 /src | |
parent | 67dce611e5bf84fd9e4bf29da6f45bd53f64f336 (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>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/include/media_device.h | 3 |
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); |