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