manager: include config-validator.hpp always
There was an issue with
phosphor::led::validateConfigV1(systemLedMap);
being not included when using meson option
use-json
as false (yaml config), since it was transitively included
by manager/json-parser.hpp
Directly including it should fix the issue.
Change-Id: I056cd524ff255e4409844f74bd7755ab5ee857d6
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/manager/config-validator.hpp b/manager/config-validator.hpp
index 5d9ff5f..1dd6029 100644
--- a/manager/config-validator.hpp
+++ b/manager/config-validator.hpp
@@ -1,3 +1,5 @@
+#pragma once
+
#include "grouplayout.hpp"
#include "ledlayout.hpp"
diff --git a/manager/json-parser.hpp b/manager/json-parser.hpp
index 30a06a4..0846a03 100644
--- a/manager/json-parser.hpp
+++ b/manager/json-parser.hpp
@@ -1,6 +1,5 @@
#include "config.h"
-#include "config-validator.hpp"
#include "grouplayout.hpp"
#include "json-config.hpp"
#include "ledlayout.hpp"
diff --git a/manager/led-main.cpp b/manager/led-main.cpp
index 6d1ef82..450f4d7 100644
--- a/manager/led-main.cpp
+++ b/manager/led-main.cpp
@@ -7,6 +7,7 @@
#else
#include "led-gen.hpp"
#endif
+#include "config-validator.hpp"
#include "manager.hpp"
#include "serialize.hpp"
#include "utils.hpp"