1 #include "item_updater.hpp"
2 
3 #include <phosphor-logging/lg2.hpp>
4 #include <sdbusplus/async.hpp>
5 
6 using ItemUpdaterIntf = phosphor::software::updater::ItemUpdater;
7 
8 PHOSPHOR_LOG2_USING;
9 
10 int main()
11 {
12     info("Creating Software Manager");
13     auto path = std::string(SOFTWARE_OBJPATH) + "/bmc";
14     sdbusplus::async::context ctx;
15     sdbusplus::server::manager_t manager{ctx, SOFTWARE_OBJPATH};
16 
17     constexpr auto serviceName = "xyz.openbmc_project.Software.Manager";
18 
19     ItemUpdaterIntf itemUpdater{ctx, path};
20     ctx.request_name(serviceName);
21 
22     ctx.run();
23     return 0;
24 }
25