blob: 85fec45d632b1c82e962d8a8225757e098e85803 [file] [log] [blame]
Harshit Aghera82d4a622025-04-21 19:09:02 +05301/*
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
13int 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}