// SPDX-License-Identifier: Apache-2.0 // SPDX-FileCopyrightText: Copyright 2024 Hewlett Packard Enterprise #pragma once #include #include class MachineContext : public sdbusplus::aserver::xyz::openbmc_project::inventory::decorator:: Asset { public: explicit MachineContext(sdbusplus::async::context& ctx, auto path) : sdbusplus::aserver::xyz::openbmc_project::inventory::decorator::Asset< MachineContext>(ctx, path) {}; void populateFromDeviceTree(); static bool keyNodeExists(); private: static constexpr auto nodeBasePath = "/proc/device-tree/"; };