From patchwork Tue Jan 1 21:23:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 117 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A112860B33 for ; Tue, 1 Jan 2019 22:22:33 +0100 (CET) Received: from avalon.bb.dnainternet.fi (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E02A3B81 for ; Tue, 1 Jan 2019 22:22:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1546377753; bh=Hw51POc7lSFpsCxFBLrFbyuQ3V0AtVZ2yuRFvdHOmHU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gCC3Gf1VHRskugqnCRwpbDMSEu9jBhibIBufwpFoFb8bhtGxGBarihAkhXPj1lM6a 83tmOcPVinnW95rDq+soGWmizs6CX0XdD4FK/wrfrmKqWzsrqVZYpHExXAaQNQwO5A QTUVcfsNGlJ0rmr6frmDPaL4flHqaqKLpPfrNRmw= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Tue, 1 Jan 2019 23:23:26 +0200 Message-Id: <20190101212328.18361-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190101212328.18361-1-laurent.pinchart@ideasonboard.com> References: <20190101212328.18361-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/4] libcamera: mediadevice: Make getEntityByName() public X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2019 21:22:34 -0000 The function is useful as a public API, make it public. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- 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 74a67c81398a..fd1e12d1bbcb 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 &entities() const { return entities_; } + MediaEntity *getEntityByName(const std::string &name); private: std::string driver_; @@ -46,7 +48,6 @@ private: void clear(); std::vector entities_; - MediaEntity *getEntityByName(const std::string &name); bool populateEntities(const struct media_v2_topology &topology); bool populatePads(const struct media_v2_topology &topology);