blob: 3ee9f1ad743045d9417770a47561b5b1f535b487 [file] [log] [blame]
#include "item_updater.hpp"
#include <phosphor-logging/lg2.hpp>
#include <sdbusplus/async.hpp>
using ItemUpdaterIntf = phosphor::software::updater::ItemUpdater;
PHOSPHOR_LOG2_USING;
int main()
{
info("Creating Software Manager");
auto path = std::string(SOFTWARE_OBJPATH) + "/bmc";
sdbusplus::async::context ctx;
sdbusplus::server::manager_t manager{ctx, SOFTWARE_OBJPATH};
constexpr auto serviceName = "xyz.openbmc_project.Software.Manager";
ItemUpdaterIntf itemUpdater{ctx, path};
ctx.request_name(serviceName);
ctx.run();
return 0;
}