1 #include "config.h" 2 3 #include "settings_manager.hpp" 4 5 #include <sdbusplus/bus.hpp> 6 #include <sdbusplus/server/manager.hpp> 7 8 int main(int argc, char* argv[]) 9 { 10 auto bus = sdbusplus::bus::new_default(); 11 12 // Add sdbusplus ObjectManager. The settings objects are spread across 13 // the object namespace and are not under a (settings) root. Hence register 14 // "/" as the path. 15 sdbusplus::server::manager_t objManager(bus, "/"); 16 bus.request_name(SETTINGS_BUSNAME); 17 18 phosphor::settings::Manager mgr(bus); 19 20 while (true) 21 { 22 bus.process_discard(); 23 bus.wait(); 24 } 25 26 return 0; 27 } 28