main.cpp (d11a732a802cc281f4c1583275871fbc5f5ecced) | main.cpp (cb4c1a27574a7fe121a851ae7ba67aec254a1129) |
---|---|
1/** 2 * Copyright 2017 Google Inc. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 --- 21 unchanged lines hidden (view full) --- 30#include "sensors/manager.hpp" 31#include "util.hpp" 32 33#include <CLI/CLI.hpp> 34#include <boost/asio/io_context.hpp> 35#include <boost/asio/steady_timer.hpp> 36#include <sdbusplus/asio/connection.hpp> 37#include <sdbusplus/bus.hpp> | 1/** 2 * Copyright 2017 Google Inc. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 --- 21 unchanged lines hidden (view full) --- 30#include "sensors/manager.hpp" 31#include "util.hpp" 32 33#include <CLI/CLI.hpp> 34#include <boost/asio/io_context.hpp> 35#include <boost/asio/steady_timer.hpp> 36#include <sdbusplus/asio/connection.hpp> 37#include <sdbusplus/bus.hpp> |
38#include <sdbusplus/server/manager.hpp> |
|
38 39#include <chrono> 40#include <filesystem> 41#include <iostream> 42#include <list> 43#include <map> 44#include <memory> 45#include <thread> --- 209 unchanged lines hidden (view full) --- 255 } 256 257 static constexpr auto modeRoot = "/xyz/openbmc_project/settings/fanctrl"; 258 // Create a manager for the ModeBus because we own it. 259 sdbusplus::server::manager::manager( 260 static_cast<sdbusplus::bus::bus&>(modeControlBus), modeRoot); 261 hostBus.request_name("xyz.openbmc_project.Hwmon.external"); 262 modeControlBus.request_name("xyz.openbmc_project.State.FanCtrl"); | 39 40#include <chrono> 41#include <filesystem> 42#include <iostream> 43#include <list> 44#include <map> 45#include <memory> 46#include <thread> --- 209 unchanged lines hidden (view full) --- 256 } 257 258 static constexpr auto modeRoot = "/xyz/openbmc_project/settings/fanctrl"; 259 // Create a manager for the ModeBus because we own it. 260 sdbusplus::server::manager::manager( 261 static_cast<sdbusplus::bus::bus&>(modeControlBus), modeRoot); 262 hostBus.request_name("xyz.openbmc_project.Hwmon.external"); 263 modeControlBus.request_name("xyz.openbmc_project.State.FanCtrl"); |
264 sdbusplus::server::manager::manager objManager(modeControlBus, modeRoot); |
|
263 264 /* 265 * All sensors are managed by one manager, but each zone has a pointer to 266 * it. 267 */ 268 269 pid_control::tryRestartControlLoops(); 270 271 io.run(); 272 return 0; 273} | 265 266 /* 267 * All sensors are managed by one manager, but each zone has a pointer to 268 * it. 269 */ 270 271 pid_control::tryRestartControlLoops(); 272 273 io.run(); 274 return 0; 275} |