1 #pragma once 2 3 #include <libpldm/base.h> 4 5 #include <string> 6 7 namespace pldm::oem_meta 8 { 9 10 /** 11 * @brief Check the IANA of the MCTP endpoint device that sent the OEM message. 12 * 13 * @param[in] tid - PLDM TID of the sender. 14 * @param[out] bool - True if the endpoint used META IANA, false otherwise. 15 */ 16 bool checkMetaIana(const pldm_tid_t& tid); 17 18 /** 19 * @brief Get the slot number from D-Bus for the given sender tid. 20 * 21 * - If no configurations available, it will return std::string("0"). 22 * - If any error or exception occurs during the process, it 23 * will fall back to a hardcoded slot number based on the TID. 24 * 25 * This function does not throw exceptions. 26 * 27 * @param[in] tid - PLDM TID of the sender. 28 * @param[out] std::string - Corresponding slot number. 29 */ 30 std::string getSlotNumberStringByTID(const pldm_tid_t& tid); 31 32 } // namespace pldm::oem_meta 33