1 #include "config.h" 2 3 #include "chassis_state_manager.hpp" 4 5 #include <sdbusplus/bus.hpp> 6 7 #include <cstdlib> 8 #include <exception> 9 #include <iostream> 10 11 int main() 12 { 13 auto bus = sdbusplus::bus::new_default(); 14 15 // For now, we only have one instance of the chassis 16 auto objPathInst = std::string{CHASSIS_OBJPATH} + '0'; 17 18 // Add sdbusplus ObjectManager. 19 sdbusplus::server::manager::manager objManager(bus, objPathInst.c_str()); 20 21 phosphor::state::manager::Chassis manager(bus, objPathInst.c_str()); 22 23 bus.request_name(CHASSIS_BUSNAME); 24 manager.startPOHCounter(); 25 26 return 0; 27 } 28