Alexander Hansen | 4e1142d | 2025-07-25 17:07:27 +0200 | [diff] [blame^] | 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | // SPDX-FileCopyrightText: Copyright 2018 Intel Corporation |
Alexander Hansen | 44c9025 | 2025-06-27 15:17:42 +0200 | [diff] [blame] | 3 | |
| 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 | |
| 11 | int 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 Hansen | 44c9025 | 2025-06-27 15:17:42 +0200 | [diff] [blame] | 24 | io.run(); |
| 25 | |
| 26 | return 0; |
| 27 | } |