1 #include <sdbusplus/bus.hpp> 2 #include "config.h" 3 #include "bmc_state_manager.hpp" 4 5 6 int main(int argc, char**) 7 { 8 auto bus = sdbusplus::bus::new_default(); 9 10 // For now, we only have one instance of the BMC 11 // 0 is for the current instance 12 auto objPathInst = std::string(BMC_OBJPATH) + '0'; 13 14 // Add sdbusplus ObjectManager. 15 sdbusplus::server::manager::manager objManager(bus, objPathInst.c_str()); 16 17 phosphor::state::manager::BMC manager(bus, 18 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 } 31