From 492019745db1c103270b76686bdb2ccc93a9e954 Mon Sep 17 00:00:00 2001
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Date: Tue, 1 Jan 2019 19:35:21 +0200
Subject: 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>
---
 src/libcamera/include/media_device.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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);
-- 
cgit v1.2.1