blob: e32e8c8f9450887cd1f0717c8b81a856f4af7f6f [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.
10 sdbusplus::server::manager::manager objManager(bus,
11 SOFTWARE_OBJPATH);
12
13 phosphor::software::manager::Download manager(bus,
14 SOFTWARE_OBJPATH);
15
16 bus.request_name(DOWNLOAD_BUSNAME);
17
18 while (true)
19 {
20 bus.process_discard();
21 bus.wait();
22 }
23 return 0;
24}