#pragma once #include #include namespace phosphor { namespace host { /** @class Host * @brief OpenBMC control host interface implementation. * @details A concrete implementation for xyz.openbmc_project.Control.Host * DBus API. */ class Host : public sdbusplus::server::object::object< sdbusplus::xyz::openbmc_project::Control::server::Host> { public: /** @brief Constructs Host Control Interface * * @param[in] bus - The Dbus bus object * @param[in] objPath - The Dbus object path */ Host(sdbusplus::bus::bus& bus, const char* objPath) : sdbusplus::server::object::object< sdbusplus::xyz::openbmc_project::Control::server::Host>( bus, objPath) {} /** @brief Send input command to host * * Note that the command will be queued in a FIFO if other commands * to the host have yet to be run * * @param[in] command - Input command to execute */ void execute(Command command) override; }; } // namespace host } // namespace phosphor