Use generated bindings for Led Group manager
This extends generated sdbusplus interface and provides implementation for
handling LED group operations.
Change-Id: I9e6f83f2f801de24d33937bc651228b1c0ccdc37
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/group.cpp b/group.cpp
new file mode 100644
index 0000000..8ed2ab0
--- /dev/null
+++ b/group.cpp
@@ -0,0 +1,21 @@
+#include <sdbusplus/message.hpp>
+#include "group.hpp"
+namespace phosphor
+{
+namespace led
+{
+
+/** @brief Overloaded Property Setter function */
+bool Group::asserted(bool value)
+{
+ // Group management is handled by Manager
+ auto result = manager.setGroupState(path, value);
+
+ // Set the base class's asserted to 'true' since the getter
+ // operation is handled there.
+ return sdbusplus::xyz::openbmc_project::Led::server::
+ Group::asserted(result);
+}
+
+} // namespace led
+} // namespace phosphor