From patchwork Wed May 25 10:25:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 16040 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 D396EBD161 for ; Wed, 25 May 2022 10:25:44 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 144EA65661; Wed, 25 May 2022 12:25:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1653474344; bh=u1+GHvh8H7c41+BilbK5KJIwBAkR2y64xmqgEZFcUFg=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=LnxHJrU81jaLZfz32Hnhi0d23m3KL6YBXC1m0zlEk/5PNHR6ItQBWYb/GSWY8RMZI G6mJ5yQ4bykDTf7ebxL6ZpdgzSz9EZrdrNrexXHWNGt4jkHLhNrqIdgSr/lwr02EFT jDFkR2ZwSfQL9J+EcCYn2YuXyWSxFDIthlKFSNrAvPSBG/VxbZJBWNKY5adUgdXquS GJ8XV0C3U/Ia5NMFUqRz7tOUcpUuvssA2sCqJZspF3WSulAlSckKp+3Hh/k0aGIDh+ habR4yP2R6LbSCiO9xnVsCpdQLB5tXlsTwmSVjfgshFTOd3uP/Zn1HcsMQWwKSyHTx EgXR1+0w0BD6Q== 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 ABCA660429 for ; Wed, 25 May 2022 12:25:41 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="LrRbVzcH"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (unknown [141.113.67.45]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2E18D59D for ; Wed, 25 May 2022 12:25:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1653474341; bh=u1+GHvh8H7c41+BilbK5KJIwBAkR2y64xmqgEZFcUFg=; h=From:To:Subject:Date:From; b=LrRbVzcH+F2tgZfb0rnvkdOQljsRLMHFym1fl8GIPmvkk5Y6jAam8/nEhtW4huXGm L9Cq7nG0AkZ7IkTQyUQIaKs7/mF3OjHjU+xig05Mwh2kjvXMYaM3P9AS97AMHMHhnU I5dYUfbNnVb7PvFw+gXE+lxTpQ2rIXIdcYX6C7OI= To: libcamera-devel@lists.libcamera.org Date: Wed, 25 May 2022 13:25:33 +0300 Message-Id: <20220525102533.32052-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: ipa: Move IPA control serialization structures to libcamera namespace 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: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The C structures used to serialize controls are currently defined in the root namespace, which places them at the root level in the class list generated by Doxygen. Move them to the libcamera namespace to fix that. Signed-off-by: Laurent Pinchart Reviewed-by: Umang Jain Reviewed-by: Paul Elder --- include/libcamera/ipa/ipa_controls.h | 4 ++++ src/libcamera/ipa_controls.cpp | 4 ++++ 2 files changed, 8 insertions(+) base-commit: 3e7f54a3128d8143afb200d626d3b208d493623a diff --git a/include/libcamera/ipa/ipa_controls.h b/include/libcamera/ipa/ipa_controls.h index da1a759618e0..e5da1946ce1d 100644 --- a/include/libcamera/ipa/ipa_controls.h +++ b/include/libcamera/ipa/ipa_controls.h @@ -10,6 +10,8 @@ #include #ifdef __cplusplus +namespace libcamera { + extern "C" { #endif @@ -48,5 +50,7 @@ struct ipa_control_info_entry { }; #ifdef __cplusplus +} /* namespace libcamera */ + } #endif diff --git a/src/libcamera/ipa_controls.cpp b/src/libcamera/ipa_controls.cpp index c3489bbff646..870a443b0f38 100644 --- a/src/libcamera/ipa_controls.cpp +++ b/src/libcamera/ipa_controls.cpp @@ -131,6 +131,8 @@ * shall be ignored when parsing the packet. */ +namespace libcamera { + /** * \def IPA_CONTROLS_FORMAT_VERSION * \brief The current control serialization format version @@ -224,3 +226,5 @@ static_assert(sizeof(ipa_control_value_entry) == 16, static_assert(sizeof(ipa_control_info_entry) == 16, "Invalid ABI size change for struct ipa_control_info_entry"); + +} /* namespace libcamera */