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