blob: 3656f8ced7b011e8a135f4ebe998817448a4e639 [file] [log] [blame]
Gunnar Mills701e0212017-04-03 11:21:27 -05001#include "config.h"
Gunnar Millsb0ce9962018-09-07 13:39:10 -05002
Gunnar Mills701e0212017-04-03 11:21:27 -05003#include "download_manager.hpp"
4
Gunnar Millsb0ce9962018-09-07 13:39:10 -05005#include <sdbusplus/bus.hpp>
6
Adriana Kobylak292159f2020-05-05 09:25:55 -05007int main()
Gunnar Mills701e0212017-04-03 11:21:27 -05008{
9 auto bus = sdbusplus::bus::new_default();
10
11 // Add sdbusplus ObjectManager.
Patrick Williamsbf2bb2b2022-07-22 19:26:52 -050012 sdbusplus::server::manager_t objManager(bus, SOFTWARE_OBJPATH);
Gunnar Mills701e0212017-04-03 11:21:27 -050013
Adriana Kobylak2285fe02018-02-27 15:36:59 -060014 phosphor::software::manager::Download manager(bus, SOFTWARE_OBJPATH);
Gunnar Mills701e0212017-04-03 11:21:27 -050015
16 bus.request_name(DOWNLOAD_BUSNAME);
17
18 while (true)
19 {
20 bus.process_discard();
21 bus.wait();
22 }
23 return 0;
24}