oem-meta: Add OEM Meta handler
Add OEM Meta class.
Change-Id: Id069d7d491819e446368d78da28a6590bfc6faa9
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
Signed-off-by: Sora Su <baxiche@gmail.com>
diff --git a/oem/meta/utils.hpp b/oem/meta/utils.hpp
new file mode 100644
index 0000000..b8674e9
--- /dev/null
+++ b/oem/meta/utils.hpp
@@ -0,0 +1,32 @@
+#pragma once
+
+#include <libpldm/base.h>
+
+#include <string>
+
+namespace pldm::oem_meta
+{
+
+/**
+ * @brief Check the IANA of the MCTP endpoint device that sent the OEM message.
+ *
+ * @param[in] tid - PLDM TID of the sender.
+ * @param[out] bool - True if the endpoint used META IANA, false otherwise.
+ */
+bool checkMetaIana(const pldm_tid_t& tid);
+
+/**
+ * @brief Get the slot number from D-Bus for the given sender tid.
+ *
+ * - If no configurations available, it will return std::string("0").
+ * - If any error or exception occurs during the process, it
+ * will fall back to a hardcoded slot number based on the TID.
+ *
+ * This function does not throw exceptions.
+ *
+ * @param[in] tid - PLDM TID of the sender.
+ * @param[out] std::string - Corresponding slot number.
+ */
+std::string getSlotNumberStringByTID(const pldm_tid_t& tid);
+
+} // namespace pldm::oem_meta