blob: ebd27f809d3571471a3f3b0dc8ec600594632a59 [file] [log] [blame]
Alexander Hansen4e1142d2025-07-25 17:07:27 +02001// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright 2018 Intel Corporation
Alexander Hansen44c90252025-06-27 15:17:42 +02003
4#include "entity_manager.hpp"
5
6#include <boost/asio/io_context.hpp>
7#include <boost/asio/post.hpp>
8#include <nlohmann/json.hpp>
9#include <sdbusplus/asio/connection.hpp>
10
11int main()
12{
13 boost::asio::io_context io;
14 auto systemBus = std::make_shared<sdbusplus::asio::connection>(io);
15 systemBus->request_name("xyz.openbmc_project.EntityManager");
16 EntityManager em(systemBus, io);
17
Alexander Hansen44c90252025-06-27 15:17:42 +020018 boost::asio::post(io, [&]() { em.propertiesChangedCallback(); });
19
20 em.handleCurrentConfigurationJson();
21
Alexander Hansen44c90252025-06-27 15:17:42 +020022 io.run();
23
24 return 0;
25}