action: use PDI type
Rather than define our own enumeration for the LED Actions,
reuse the one from Led.Physical's dbus interface.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I4615bed9e87c61d2632fe790bd50892a7f51e2ab
diff --git a/manager/ledlayout.hpp b/manager/ledlayout.hpp
index f12e0b5..6d617b4 100644
--- a/manager/ledlayout.hpp
+++ b/manager/ledlayout.hpp
@@ -1,5 +1,7 @@
#pragma once
+#include <xyz/openbmc_project/Led/Physical/server.hpp>
+
#include <map>
#include <set>
#include <string>
@@ -13,15 +15,8 @@
*/
namespace Layout
{
-/** @brief Define possible actions on a given LED.
- * For the BLINK operation, follow 50-50 duty cycle
- */
-enum Action
-{
- Off,
- On,
- Blink,
-};
+
+using Action = sdbusplus::xyz::openbmc_project::Led::server::Physical::Action;
/** @brief Name of the LED and it's proposed action.
* This structure is supplied as configuration at build time