Skip to content

Commit

Permalink
Add send/receive return value documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Bellock <[email protected]>
  • Loading branch information
steven-bellock committed Dec 2, 2024
1 parent c0b2cbc commit 7206ad5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/library/spdm_common_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,9 @@ size_t libspdm_get_context_size_without_secured_context(void);
* If called in a Requester context then timeout is equal to RTT.
* If called in a Responder context then timeout is equal to 0 and Responder
* should not timeout when sending the message.
*
* @retval LIBSPDM_STATUS_SUCCESS The message was successfully sent to the receiving endpoint.
* @retval LIBSPDM_STATUS_SEND_FAIL Unable to send message to the receiving endpoint.
**/
typedef libspdm_return_t (*libspdm_device_send_message_func)(void *spdm_context,
size_t message_size,
Expand Down Expand Up @@ -518,6 +521,10 @@ typedef libspdm_return_t (*libspdm_device_send_message_func)(void *spdm_context,
* CT or ST1.
* If called in a Responder context then timeout is equal to 0 and Responder
* should not timeout when receiving the message.
*
* @retval LIBSPDM_STATUS_SUCCESS The message was successfully received from the sending
* endpoint.
* @retval LIBSPDM_STATUS_RECEIVE_FAIL Unable to receive message from the sending endpoint.
**/
typedef libspdm_return_t (*libspdm_device_receive_message_func)(void *spdm_context,
size_t *message_size,
Expand Down

0 comments on commit 7206ad5

Please sign in to comment.