libcamera: global_configuration: Add missing include and comment

global_configuration.h uses std::initializer_list, include the
corresponding header. Add a comment in global_configuration.cpp to close
an anonymous namespace, as mandated by the coding style.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Isaac Scott <isaac.scott@ideasonboard.com>
This commit is contained in:
Laurent Pinchart
2025-10-29 00:45:12 +02:00
parent e2aea3f4e1
commit 49d87c613b
2 changed files with 4 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
#pragma once
#include <filesystem>
#include <initializer_list>
#include <optional>
#include <string>
#include <string_view>

View File

@@ -24,11 +24,13 @@
namespace libcamera {
namespace {
const std::vector<std::filesystem::path> globalConfigurationFiles = {
std::filesystem::path(LIBCAMERA_SYSCONF_DIR) / "configuration.yaml",
std::filesystem::path(LIBCAMERA_DATA_DIR) / "configuration.yaml",
};
}
} /* namespace */
LOG_DEFINE_CATEGORY(Configuration)