From patchwork Mon Aug 17 20:26:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 9335 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id B9D17BD87F for ; Mon, 17 Aug 2020 20:26:45 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7C9E661AC0; Mon, 17 Aug 2020 22:26:45 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=uajain.com header.i=@uajain.com header.b="s8bJ01pV"; dkim-atps=neutral Received: from o1.f.az.sendgrid.net (o1.f.az.sendgrid.net [208.117.55.132]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7934860384 for ; Mon, 17 Aug 2020 22:26:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uajain.com; h=from:subject:in-reply-to:references:mime-version:to:cc: content-transfer-encoding:content-type; s=s1; bh=cIVNxcy+fK6YvXjgadEN8IFcTyvhDnKtXbKusmkI7k8=; b=s8bJ01pVqkiQ0yP+orcOowLsgJjmD6V6GyPwW8f4NabEIlar6RyzzVYYN5sUuU5Iw9CE 8wpiAwXeZuki3mGYrY41krC5y59saDGp5YXay8nr3AL/tKeTAD1lObjdFmlaUlLWSYfa8o aJMC7oTp43tEFlxAQQPRZqEHp6tg107hA= Received: by filterdrecv-p3iad2-5c98798b7-lvbn8 with SMTP id filterdrecv-p3iad2-5c98798b7-lvbn8-19-5F3AE7FF-74 2020-08-17 20:26:40.122843818 +0000 UTC m=+359830.605448517 Received: from mail.uajain.com (unknown) by ismtpd0007p1hnd1.sendgrid.net (SG) with ESMTP id MapXxGhwR6qQ-bIEPbv7MA for ; Mon, 17 Aug 2020 20:26:39.777 +0000 (UTC) From: Umang Jain Date: Mon, 17 Aug 2020 20:26:40 +0000 (UTC) Message-Id: <20200817202629.4277-5-email@uajain.com> In-Reply-To: <20200817202629.4277-1-email@uajain.com> References: <20200817202629.4277-1-email@uajain.com> Mime-Version: 1.0 X-SG-EID: 1Q40EQ7YGir8a9gjSIAdTjhngY657NMk9ckeo4dbHZDiOpywc/L3L9rFqlwE4KPc+mYHlj5pFD2lBxsaGLVsOL1TgK5daouuYLtNg7G7Lv529LYZX0a3OuNg7qZxgv5icBNmqAUfRPAuftyRKSUtqeSoQMzh8fg72eG6PSgV9daRPgWrZJWO28TCd/UHghOfZ2DUfkc8l/OuPrYh6FbWewiU4EksKdQZmv4TPdVLnkp9dKmyZOoGi8MxvlYC3hLMiba0RnC605MvqQ8ldMlxMw== To: libcamera-devel@lists.libcamera.org Subject: [libcamera-devel] [PATCH v3 4/5] android: camera_device: Add a getter to get libcamera::Camera pointer X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add a public member function to get the libcamera::Camera pointer associated with the CameraDevice. This will help to find the CameraDevice object in CameraHalManager when the hotplug support is extended in the android layer. Signed-off-by: Umang Jain Reviewed-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- src/android/camera_device.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/android/camera_device.h b/src/android/camera_device.h index b149043..7908bc0 100644 --- a/src/android/camera_device.h +++ b/src/android/camera_device.h @@ -57,6 +57,7 @@ public: unsigned int id() const { return id_; } camera3_device_t *camera3Device() { return &camera3Device_; } + const libcamera::Camera *camera() { return camera_.get(); } int facing() const { return facing_; } int orientation() const { return orientation_; }