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