1701e021cSGunnar Mills #include "config.h"
2b0ce996aSGunnar Mills 
3701e021cSGunnar Mills #include "download_manager.hpp"
4701e021cSGunnar Mills 
5b0ce996aSGunnar Mills #include <sdbusplus/bus.hpp>
6b0ce996aSGunnar Mills 
main()7292159f4SAdriana Kobylak int main()
8701e021cSGunnar Mills {
9701e021cSGunnar Mills     auto bus = sdbusplus::bus::new_default();
10701e021cSGunnar Mills 
11701e021cSGunnar Mills     // Add sdbusplus ObjectManager.
12*bf2bb2b1SPatrick Williams     sdbusplus::server::manager_t objManager(bus, SOFTWARE_OBJPATH);
13701e021cSGunnar Mills 
142285fe0fSAdriana Kobylak     phosphor::software::manager::Download manager(bus, SOFTWARE_OBJPATH);
15701e021cSGunnar Mills 
16701e021cSGunnar Mills     bus.request_name(DOWNLOAD_BUSNAME);
17701e021cSGunnar Mills 
18701e021cSGunnar Mills     while (true)
19701e021cSGunnar Mills     {
20701e021cSGunnar Mills         bus.process_discard();
21701e021cSGunnar Mills         bus.wait();
22701e021cSGunnar Mills     }
23701e021cSGunnar Mills     return 0;
24701e021cSGunnar Mills }
25