blob: 3d725b7306cf8ec769b585b1b8ac1691b4b5b3b0 [file] [log] [blame]
Gunnar Millsb0ce9962018-09-07 13:39:10 -05001#include "config.h"
2
3#include "item_updater.hpp"
Jagpal Singh Gill2431e7f2024-04-07 23:51:12 -07004#include "software_utils.hpp"
Gunnar Millsb0ce9962018-09-07 13:39:10 -05005
Lei YU25868182021-05-14 14:50:51 +08006#include <sdbusplus/asio/connection.hpp>
Gunnar Millsec1b41c2017-05-02 12:20:36 -05007#include <sdbusplus/bus.hpp>
8#include <sdbusplus/server/manager.hpp>
Gunnar Millsec1b41c2017-05-02 12:20:36 -05009
Adriana Kobylak292159f2020-05-05 09:25:55 -050010int main()
Gunnar Millsec1b41c2017-05-02 12:20:36 -050011{
Jagpal Singh Gillbb024eb2024-04-07 23:34:00 -070012 sdbusplus::async::context ctx;
Gunnar Millsec1b41c2017-05-02 12:20:36 -050013
14 // Add sdbusplus ObjectManager.
Jagpal Singh Gillbb024eb2024-04-07 23:34:00 -070015 sdbusplus::server::manager_t objManager(ctx, SOFTWARE_OBJPATH);
Gunnar Millsec1b41c2017-05-02 12:20:36 -050016
Jagpal Singh Gillbb024eb2024-04-07 23:34:00 -070017 phosphor::software::updater::ItemUpdater updater(ctx, SOFTWARE_OBJPATH,
18 false);
Gunnar Millsec1b41c2017-05-02 12:20:36 -050019
Jagpal Singh Gillbb024eb2024-04-07 23:34:00 -070020 ctx.request_name(BUSNAME_UPDATER);
Gunnar Millsec1b41c2017-05-02 12:20:36 -050021
Jagpal Singh Gillbb024eb2024-04-07 23:34:00 -070022 ctx.run();
Lei YU25868182021-05-14 14:50:51 +080023
Gunnar Millsec1b41c2017-05-02 12:20:36 -050024 return 0;
25}