blob: 702cbd332521bc5cd9662286deaf959a33eb9237 [file] [log] [blame]
Sora Sue4820872025-07-10 18:51:40 +08001#include "utils.hpp"
2
3#include "common/types.hpp"
4
5namespace pldm::oem_meta
6{
7
8namespace
9{
10
11/* @brief map PLDM TID to MCTP EID; currently, they have a one-to-one
12 * correspondence
13 */
14eid mapTIDtoEID(const pldm_tid_t& tid)
15{
16 eid EID = static_cast<eid>(tid);
17 return EID;
18}
19
20} // namespace
21
22bool checkMetaIana(const pldm_tid_t& tid)
23{
24 [[maybe_unused]] const eid& EID = mapTIDtoEID(tid);
25 return true;
26}
27
28std::string getSlotNumberStringByTID(const pldm_tid_t& tid)
29{
30 [[maybe_unused]] const eid& EID = mapTIDtoEID(tid);
31 return std::string{"0"};
32}
33
34} // namespace pldm::oem_meta