From patchwork Tue Sep 15 14:20:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 9624 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 D8BCBBF01C for ; Tue, 15 Sep 2020 14:21:26 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A502062E23; Tue, 15 Sep 2020 16:21:26 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="s4fR8sox"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6EF7862E17 for ; Tue, 15 Sep 2020 16:21:25 +0200 (CEST) Received: from pyrite.rasen.tech (unknown [IPv6:2400:4051:61:600:2c71:1b79:d06d:5032]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A9076276; Tue, 15 Sep 2020 16:21:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1600179685; bh=OcghZ9l+sP+9kXxJlJJSLmso5fjqijVhZW9Op5VXJ4c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s4fR8soxTBLUIF7hoGW2Nk6V8Dd6FhwezDKM6Ec64r/lqKfgWCXyf3P5QuZLwXga/ q3hLYNsNy2kz/kn1wjXpSrRrVtckh57Wm4+8NwATOKO94i1+GbZHd7ECQ4sigfkc8G FkjA7vV1KQEzsspNST735gZShl1jaXQxJZYe4uxM= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Tue, 15 Sep 2020 23:20:29 +0900 Message-Id: <20200915142038.28757-15-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200915142038.28757-1-paul.elder@ideasonboard.com> References: <20200915142038.28757-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 14/23] libcamera: IPAInterface: make ipaCreate return IPAInterface 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" With the new IPC infrastructure, we no longer need the C interface as provided by struct ipa_context. Make ipaCreate return IPAinterface. Signed-off-by: Paul Elder --- include/libcamera/ipa/ipa_interface.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/libcamera/ipa/ipa_interface.h b/include/libcamera/ipa/ipa_interface.h index cbe325ea..6efe2e99 100644 --- a/include/libcamera/ipa/ipa_interface.h +++ b/include/libcamera/ipa/ipa_interface.h @@ -110,8 +110,6 @@ struct ipa_context_ops { const struct ipa_operation_data *data); }; -struct ipa_context *ipaCreate(); - #ifdef __cplusplus } @@ -154,6 +152,11 @@ public: }; } /* namespace libcamera */ + +extern "C" { +libcamera::IPAInterface *ipaCreate(); +} + #endif #endif /* __LIBCAMERA_IPA_INTERFACE_H__ */