summaryrefslogtreecommitdiffstats
path: root/control/zone.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'control/zone.hpp')
-rw-r--r--control/zone.hpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/control/zone.hpp b/control/zone.hpp
index 9c85655..ad4d4b4 100644
--- a/control/zone.hpp
+++ b/control/zone.hpp
@@ -7,6 +7,7 @@
#include <vector>
#include "fan.hpp"
#include "types.hpp"
+#include "xyz/openbmc_project/Control/ThermalMode/server.hpp"
namespace phosphor
{
@@ -15,6 +16,9 @@ namespace fan
namespace control
{
+using ThermalObject = sdbusplus::server::object::object<
+ sdbusplus::xyz::openbmc_project::Control::server::ThermalMode>;
+
/**
* The mode fan control will run in:
* - init - only do the initialization steps
@@ -30,7 +34,7 @@ enum class Mode
* @class Represents a fan control zone, which is a group of fans
* that behave the same.
*/
-class Zone
+class Zone : public ThermalObject
{
public:
@@ -48,11 +52,13 @@ class Zone
*
* @param[in] mode - mode of fan control
* @param[in] bus - the dbus object
+ * @param[in] path - object instance path
* @param[in] event - Event loop reference
* @param[in] def - the fan zone definition data
*/
Zone(Mode mode,
sdbusplus::bus::bus& bus,
+ const std::string& path,
const sdeventplus::Event& event,
const ZoneDefinition& def);
@@ -470,6 +476,11 @@ class Zone
sdbusplus::bus::bus& _bus;
/**
+ * Zone object path
+ */
+ const std::string _path;
+
+ /**
* Full speed for the zone
*/
const uint64_t _fullSpeed;
OpenPOWER on IntegriCloud