summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-05-25 13:16:20 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-05-27 16:07:01 +0300
commitc3515cf6e57bf4016f84c1228f26bf7dc69027e1 (patch)
tree369ef9a4736f596968fb98b9214dacc314672dd8
parentb50718928dcfdd1e6fb890a0230614eb9aa38111 (diff)
libcamera: ipa: Move IPA control serialization structures to libcamera namespace
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
-rw-r--r--include/libcamera/ipa/ipa_controls.h4
-rw-r--r--src/libcamera/ipa_controls.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/libcamera/ipa/ipa_controls.h b/include/libcamera/ipa/ipa_controls.h
index da1a7596..e5da1946 100644
--- a/include/libcamera/ipa/ipa_controls.h
+++ b/include/libcamera/ipa/ipa_controls.h
@@ -10,6 +10,8 @@
#include <stdint.h>
#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 c3489bbf..870a443b 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 */