blob: 3568124c16e5e77a00877418ebb5815095dfb822 [file] [log] [blame]
Gunnar Millsb0ce9962018-09-07 13:39:10 -05001#include "config.h"
2
3#include "item_updater.hpp"
4
Gunnar Millsec1b41c2017-05-02 12:20:36 -05005#include <sdbusplus/bus.hpp>
6#include <sdbusplus/server/manager.hpp>
Gunnar Millsec1b41c2017-05-02 12:20:36 -05007
8int main(int argc, char* argv[])
9{
10 auto bus = sdbusplus::bus::new_default();
11
12 // Add sdbusplus ObjectManager.
13 sdbusplus::server::manager::manager objManager(bus, SOFTWARE_OBJPATH);
14
Michael Tritz37a59042017-07-12 13:44:53 -050015 phosphor::software::updater::ItemUpdater updater(bus, SOFTWARE_OBJPATH);
Gunnar Millsec1b41c2017-05-02 12:20:36 -050016
17 bus.request_name(BUSNAME_UPDATER);
18
19 while (true)
20 {
21 bus.process_discard();
22 bus.wait();
23 }
24 return 0;
25}