led-layout: use common types everywhere
Rather than scattered map and set typedefs, centralize the two common
structures into 'ledlayout.hpp': ActionSet, GroupMap. Use them
everywhere where previous raw maps and sets were used.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I0ed5203146a6486a49caf4000f545ded0088dc15
diff --git a/manager/group.cpp b/manager/group.cpp
index 33c64f6..d728f2b 100644
--- a/manager/group.cpp
+++ b/manager/group.cpp
@@ -2,6 +2,8 @@
#include "group.hpp"
+#include "ledlayout.hpp"
+
#include <sdbusplus/message.hpp>
namespace phosphor
{
@@ -28,8 +30,8 @@
}
// Introducing these to enable gtest.
- Manager::group ledsAssert{};
- Manager::group ledsDeAssert{};
+ ActionSet ledsAssert{};
+ ActionSet ledsDeAssert{};
// Group management is handled by Manager. The populated leds* sets are not
// really used by production code. They are there to enable gtest for