blob: 466559a514e38d82bd5e516329e2fe4d853d0a8c [file] [log] [blame]
Deepak Kodihalli1b24f972019-02-01 04:09:13 -06001#pragma once
2
3#include <stdint.h>
4
5#include <vector>
6
7#include "libpldm/base.h"
8
9namespace pldm
10{
11
12using Type = uint8_t;
13
vkaverapa6575b82019-04-03 05:33:52 -050014using Response = std::vector<uint8_t>;
15
Deepak Kodihalli1b24f972019-02-01 04:09:13 -060016namespace responder
17{
18
19/** @brief Handler for getPLDMTypes
20 *
21 * @param[in] request - Request message payload
vkaverapa6575b82019-04-03 05:33:52 -050022 * @param[in] payload_length - Request message payload length
23 * @param[return] Response - PLDM Response message
Deepak Kodihalli1b24f972019-02-01 04:09:13 -060024 */
vkaverapa6575b82019-04-03 05:33:52 -050025Response getPLDMTypes(const pldm_msg* request, size_t payloadLength);
Deepak Kodihalli1b24f972019-02-01 04:09:13 -060026
27/** @brief Handler for getPLDMCommands
28 *
29 * @param[in] request - Request message payload
vkaverapa6575b82019-04-03 05:33:52 -050030 * @param[in] payload_length - Request message payload length
31 * @param[return] Response - PLDM Response message
Deepak Kodihalli1b24f972019-02-01 04:09:13 -060032 */
vkaverapa6575b82019-04-03 05:33:52 -050033Response getPLDMCommands(const pldm_msg* request, size_t payloadLength);
Deepak Kodihalli1b24f972019-02-01 04:09:13 -060034
Sampa Misra432e1872019-02-13 03:49:43 -060035/** @brief Handler for getPLDMCommands
36 *
37 * @param[in] request - Request message payload
vkaverapa6575b82019-04-03 05:33:52 -050038 * @param[in] payload_length - Request message payload length
39 * @param[return] Response - PLDM Response message
Sampa Misra432e1872019-02-13 03:49:43 -060040 */
vkaverapa6575b82019-04-03 05:33:52 -050041Response getPLDMVersion(const pldm_msg* request, size_t payloadLength);
Deepak Kodihalli1b24f972019-02-01 04:09:13 -060042} // namespace responder
43} // namespace pldm