Harshit Aghera | 82d4a62 | 2025-04-21 19:09:02 +0530 | [diff] [blame^] | 1 | /* |
| 2 | * SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & |
| 3 | * AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0 |
| 4 | */ |
| 5 | |
| 6 | #include <boost/asio/io_context.hpp> |
| 7 | #include <sdbusplus/asio/connection.hpp> |
| 8 | #include <sdbusplus/asio/object_server.hpp> |
| 9 | |
| 10 | #include <memory> |
| 11 | #include <string> |
| 12 | |
| 13 | int main() |
| 14 | { |
| 15 | boost::asio::io_context io; |
| 16 | auto systemBus = std::make_shared<sdbusplus::asio::connection>(io); |
| 17 | sdbusplus::asio::object_server objectServer(systemBus, true); |
| 18 | objectServer.add_manager("/xyz/openbmc_project/sensors"); |
| 19 | systemBus->request_name("xyz.openbmc_project.GpuSensor"); |
| 20 | |
| 21 | io.run(); |
| 22 | return 0; |
| 23 | } |