1 #include "config.h" 2 3 #include "download_manager.hpp" 4 5 #include <sdbusplus/bus.hpp> 6 7 int main() 8 { 9 auto bus = sdbusplus::bus::new_default(); 10 11 // Add sdbusplus ObjectManager. 12 sdbusplus::server::manager::manager objManager(bus, SOFTWARE_OBJPATH); 13 14 phosphor::software::manager::Download manager(bus, SOFTWARE_OBJPATH); 15 16 bus.request_name(DOWNLOAD_BUSNAME); 17 18 while (true) 19 { 20 bus.process_discard(); 21 bus.wait(); 22 } 23 return 0; 24 } 25