blob: cf4cb828e81480ff1100d49704a4dfa6b46871f2 [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
Gunnar Mills701e0212017-04-03 11:21:27 -05007int main(int argc, char* argv[])
8{
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}