The encode APIs work with a pldm_msg_t, but the decode APIs work with a specific member of pldm_msg_t (the payload). While the decode APIs only have to deal with the payload, they would be more consistent and it would be convenient for a caller to pass in pldm_msg_t.
This issue is to change all decode APIs to accept a const struct pldm_msg *msg instead of a const uint8_t *msg. The implementation of the decode API will have to work with msg->payload instead of msg.
The encode APIs work with a pldm_msg_t, but the decode APIs work with a specific member of pldm_msg_t (the payload). While the decode APIs only have to deal with the payload, they would be more consistent and it would be convenient for a caller to pass in pldm_msg_t.
This issue is to change all decode APIs to accept a
const struct pldm_msg *msg
instead of aconst uint8_t *msg
. The implementation of the decode API will have to work withmsg->payload
instead ofmsg
.