blob: 3a80366eeea10467efa65322edddb743a3dadb13 [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
18 nlohmann::json systemConfiguration = nlohmann::json::object();
19
20 boost::asio::post(io, [&]() { em.propertiesChangedCallback(); });
21
22 em.handleCurrentConfigurationJson();
23
Alexander Hansen44c90252025-06-27 15:17:42 +020024 io.run();
25
26 return 0;
27}