blob: ff2f6822d3c17aacbaa322952c8171c32b0697da [file] [log] [blame]
Patrick Venture5c7cc542018-06-11 14:29:38 -07001#pragma once
2
Patrick Venture7a98c192020-08-12 08:35:16 -07003#include "conf.hpp"
4#include "pid/zone_interface.hpp"
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07005#include "sensors/manager.hpp"
6
Patrick Venture5c7cc542018-06-11 14:29:38 -07007#include <sdbusplus/bus.hpp>
Patrick Venturea83a3ec2020-08-04 09:52:05 -07008
9#include <memory>
Patrick Venture5c7cc542018-06-11 14:29:38 -070010#include <unordered_map>
11
Patrick Venturea0764872020-08-08 07:48:43 -070012namespace pid_control
13{
14
Patrick Venture7a98c192020-08-12 08:35:16 -070015std::unordered_map<int64_t, std::unique_ptr<ZoneInterface>>
Patrick Venture7e3f8ab2020-08-03 11:10:43 -070016 buildZones(const std::map<int64_t, conf::PIDConf>& zonePids,
James Feistf81f2882019-02-26 11:26:36 -080017 std::map<int64_t, struct conf::ZoneConfig>& zoneConfigs,
Patrick Venturef3252312018-10-30 08:42:53 -070018 SensorManager& mgr, sdbusplus::bus::bus& modeControlBus);
Patrick Venturea0764872020-08-08 07:48:43 -070019
20}