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 | |
Jinu Joy Thomas | f666db1 | 2019-05-29 05:22:31 -0500 | [diff] [blame] | 19 | namespace base |
| 20 | { |
| 21 | /** @brief Register handlers for command from the base spec |
| 22 | */ |
| 23 | void registerHandlers(); |
| 24 | } // namespace base |
| 25 | |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 26 | /** @brief Handler for getPLDMTypes |
| 27 | * |
| 28 | * @param[in] request - Request message payload |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 29 | * @param[in] payload_length - Request message payload length |
| 30 | * @param[return] Response - PLDM Response message |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 31 | */ |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 32 | Response getPLDMTypes(const pldm_msg* request, size_t payloadLength); |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 33 | |
| 34 | /** @brief Handler for getPLDMCommands |
| 35 | * |
| 36 | * @param[in] request - Request message payload |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 37 | * @param[in] payload_length - Request message payload length |
| 38 | * @param[return] Response - PLDM Response message |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 39 | */ |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 40 | Response getPLDMCommands(const pldm_msg* request, size_t payloadLength); |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 41 | |
Sampa Misra | 432e187 | 2019-02-13 03:49:43 -0600 | [diff] [blame] | 42 | /** @brief Handler for getPLDMCommands |
| 43 | * |
| 44 | * @param[in] request - Request message payload |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 45 | * @param[in] payload_length - Request message payload length |
| 46 | * @param[return] Response - PLDM Response message |
Sampa Misra | 432e187 | 2019-02-13 03:49:43 -0600 | [diff] [blame] | 47 | */ |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 48 | Response getPLDMVersion(const pldm_msg* request, size_t payloadLength); |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 49 | } // namespace responder |
| 50 | } // namespace pldm |