control: Add creating config object without a dbus object
For those configuration objects that do not need a dbus object, create
them using a similar method without requiring a dbus object to be given.
Updated each object to correctly reflect their current need of a dbus
object which was driven by moving the creation of the available group
objects to within the event.
Change-Id: I8ce4ea7baf4cfd1ad86268b760a334fcf0a4f25e
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/zone.hpp b/control/json/zone.hpp
index 4f7742c..09c1dac 100644
--- a/control/json/zone.hpp
+++ b/control/json/zone.hpp
@@ -19,7 +19,6 @@
#include "types.hpp"
#include <nlohmann/json.hpp>
-#include <sdbusplus/bus.hpp>
#include <any>
#include <functional>
@@ -68,10 +67,9 @@
* Constructor
* Parses and populates a zone from JSON object data
*
- * @param[in] bus - sdbusplus bus object
* @param[in] jsonObj - JSON object
*/
- Zone(sdbusplus::bus::bus& bus, const json& jsonObj);
+ Zone(const json& jsonObj);
/**
* @brief Get the full speed