1 #include "config.h" 2 3 #include "bmc_state_manager.hpp" 4 5 #include <sdbusplus/bus.hpp> 6 7 int main() 8 { 9 auto bus = sdbusplus::bus::new_default(); 10 11 // For now, we only have one instance of the BMC 12 // 0 is for the current instance 13 auto objPathInst = std::string(BMC_OBJPATH) + '0'; 14 15 // Add sdbusplus ObjectManager. 16 sdbusplus::server::manager_t objManager(bus, objPathInst.c_str()); 17 18 phosphor::state::manager::BMC manager(bus, objPathInst.c_str()); 19 20 bus.request_name(BMC_BUSNAME); 21 22 while (true) 23 { 24 bus.process_discard(); 25 bus.wait(); 26 } 27 28 exit(EXIT_SUCCESS); 29 } 30