1 #include "chassis_manager.hpp" 2 3 #include <CLI/CLI.hpp> 4 #include <phosphor-logging/lg2.hpp> 5 #include <sdbusplus/bus.hpp> 6 #include <sdeventplus/event.hpp> 7 8 #include <filesystem> 9 10 using namespace phosphor::power; 11 main()12int main() 13 { 14 using namespace phosphor::logging; 15 16 CLI::App app{"OpenBMC Power Supply Unit Monitor"}; 17 18 auto bus = sdbusplus::bus::new_default(); 19 auto event = sdeventplus::Event::get_default(); 20 21 // Attach the event object to the bus object so we can 22 // handle both sd_events (for the timers) and dbus signals. 23 bus.attach_event(event.get(), SD_EVENT_PRIORITY_NORMAL); 24 25 chassis_manager::ChassisManager chassis_manager(bus, event); 26 27 return chassis_manager.run(); 28 } 29