1 #include "config.h" 2 3 #include "item_updater.hpp" 4 5 #include <phosphor-logging/log.hpp> 6 #include <sdbusplus/bus.hpp> 7 #include <sdbusplus/server/manager.hpp> 8 #include <system_error> 9 10 int main(int /* argc */, char* /* argv */[]) 11 { 12 auto bus = sdbusplus::bus::new_default(); 13 14 // Add sdbusplus ObjectManager. 15 sdbusplus::server::manager_t objManager(bus, SOFTWARE_OBJPATH); 16 17 phosphor::software::updater::ItemUpdater updater(bus, SOFTWARE_OBJPATH); 18 19 bus.request_name(BUSNAME_UPDATER); 20 21 while (true) 22 { 23 bus.process_discard(); 24 bus.wait(); 25 } 26 return 0; 27 } 28