blob: 9ea37ad1a369d0d2488184defcb8c8ac4037e220 [file] [log] [blame]
Gunnar Mills701e0212017-04-03 11:21:27 -05001#include <sdbusplus/bus.hpp>
2#include "config.h"
3#include "download_manager.hpp"
4
5int main(int argc, char* argv[])
6{
7 auto bus = sdbusplus::bus::new_default();
8
9 // Add sdbusplus ObjectManager.
Adriana Kobylak2285fe02018-02-27 15:36:59 -060010 sdbusplus::server::manager::manager objManager(bus, SOFTWARE_OBJPATH);
Gunnar Mills701e0212017-04-03 11:21:27 -050011
Adriana Kobylak2285fe02018-02-27 15:36:59 -060012 phosphor::software::manager::Download manager(bus, SOFTWARE_OBJPATH);
Gunnar Mills701e0212017-04-03 11:21:27 -050013
14 bus.request_name(DOWNLOAD_BUSNAME);
15
16 while (true)
17 {
18 bus.process_discard();
19 bus.wait();
20 }
21 return 0;
22}