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>
This commit is contained in:
parent
67dce611e5
commit
492019745d
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,9 @@ public:
|
||||||
|
|
||||||
const std::string driver() const { return driver_; }
|
const std::string driver() const { return driver_; }
|
||||||
const std::string devnode() const { return devnode_; }
|
const std::string devnode() const { return devnode_; }
|
||||||
|
|
||||||
const std::vector<MediaEntity *> &entities() const { return entities_; }
|
const std::vector<MediaEntity *> &entities() const { return entities_; }
|
||||||
|
MediaEntity *getEntityByName(const std::string &name);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string driver_;
|
std::string driver_;
|
||||||
|
@ -46,7 +48,6 @@ private:
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
std::vector<MediaEntity *> entities_;
|
std::vector<MediaEntity *> entities_;
|
||||||
MediaEntity *getEntityByName(const std::string &name);
|
|
||||||
|
|
||||||
bool populateEntities(const struct media_v2_topology &topology);
|
bool populateEntities(const struct media_v2_topology &topology);
|
||||||
bool populatePads(const struct media_v2_topology &topology);
|
bool populatePads(const struct media_v2_topology &topology);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue