Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | |
| 5 | #include <vector> |
| 6 | |
| 7 | #include "libpldm/base.h" |
| 8 | |
| 9 | namespace pldm |
| 10 | { |
| 11 | |
| 12 | using Type = uint8_t; |
| 13 | |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 14 | using Response = std::vector<uint8_t>; |
| 15 | |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 16 | namespace responder |
| 17 | { |
| 18 | |
| 19 | /** @brief Handler for getPLDMTypes |
| 20 | * |
| 21 | * @param[in] request - Request message payload |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 22 | * @param[in] payload_length - Request message payload length |
| 23 | * @param[return] Response - PLDM Response message |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 24 | */ |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 25 | Response getPLDMTypes(const pldm_msg* request, size_t payloadLength); |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 26 | |
| 27 | /** @brief Handler for getPLDMCommands |
| 28 | * |
| 29 | * @param[in] request - Request message payload |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 30 | * @param[in] payload_length - Request message payload length |
| 31 | * @param[return] Response - PLDM Response message |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 32 | */ |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 33 | Response getPLDMCommands(const pldm_msg* request, size_t payloadLength); |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 34 | |
Sampa Misra | 432e187 | 2019-02-13 03:49:43 -0600 | [diff] [blame] | 35 | /** @brief Handler for getPLDMCommands |
| 36 | * |
| 37 | * @param[in] request - Request message payload |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 38 | * @param[in] payload_length - Request message payload length |
| 39 | * @param[return] Response - PLDM Response message |
Sampa Misra | 432e187 | 2019-02-13 03:49:43 -0600 | [diff] [blame] | 40 | */ |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 41 | Response getPLDMVersion(const pldm_msg* request, size_t payloadLength); |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 42 | } // namespace responder |
| 43 | } // namespace pldm |