blob: c61e1856002d5912dcc6f1915ce5d23bfd032cdb [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.
Adriana Kobylak2285fe02018-02-27 15:36:59 -060012 sdbusplus::server::manager::manager 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}