blob: c6f7dbad2cede2fbd42497383a3ed533913cf5f3 [file] [log] [blame]
#include <sdbusplus/bus.hpp>
#include <sdbusplus/server/manager.hpp>
#include "config.h"
#include "item_updater.hpp"
int main(int argc, char* argv[])
{
auto bus = sdbusplus::bus::new_default();
// Add sdbusplus ObjectManager.
sdbusplus::server::manager::manager objManager(bus, SOFTWARE_OBJPATH);
openpower::software::updater::ItemUpdater updater(bus, SOFTWARE_OBJPATH);
bus.request_name(BUSNAME_UPDATER);
while (true)
{
bus.process_discard();
bus.wait();
}
return 0;
}