blob: a6e5abd859b0ca670172232f223bd0249365f841 [file] [log] [blame]
#pragma once
#include <stdint.h>
#include <vector>
#include "libpldm/base.h"
namespace pldm
{
using Type = uint8_t;
using Response = std::vector<uint8_t>;
namespace responder
{
namespace base
{
/** @brief Register handlers for command from the base spec
*/
void registerHandlers();
} // namespace base
/** @brief Handler for getPLDMTypes
*
* @param[in] request - Request message payload
* @param[in] payload_length - Request message payload length
* @param[return] Response - PLDM Response message
*/
Response getPLDMTypes(const pldm_msg* request, size_t payloadLength);
/** @brief Handler for getPLDMCommands
*
* @param[in] request - Request message payload
* @param[in] payload_length - Request message payload length
* @param[return] Response - PLDM Response message
*/
Response getPLDMCommands(const pldm_msg* request, size_t payloadLength);
/** @brief Handler for getPLDMCommands
*
* @param[in] request - Request message payload
* @param[in] payload_length - Request message payload length
* @param[return] Response - PLDM Response message
*/
Response getPLDMVersion(const pldm_msg* request, size_t payloadLength);
/** @brief Handler for getTID
*
* @param[in] request - Request message payload
* @param[in] payload_length - Request message payload length
* @param[return] Response - PLDM Response message
*/
Response getTID(const pldm_msg* request, size_t payloadLength);
} // namespace responder
} // namespace pldm