control: Add getBus() and getGroups() functions for triggers
Event triggers will need to retrieve the sdbusplus bus object and each
actions set of groups when being created.
Change-Id: I7309ebbae6fb0c0df98f5dfaa89c9063b0d97719
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/manager.hpp b/control/json/manager.hpp
index 420551e..2ca2687 100644
--- a/control/json/manager.hpp
+++ b/control/json/manager.hpp
@@ -263,6 +263,14 @@
void timerExpired(TimerData& data);
/**
+ * @brief Get the sdbusplus bus object
+ */
+ inline auto& getBus()
+ {
+ return _bus;
+ }
+
+ /**
* @brief Get the configured power on delay(OPTIONAL)
*
* @return Power on delay in seconds