base: Reinforce some symbol names
This commit renames some symbol names for base APIs to reinforce API
naming convention defined here [1]. The list of change includes:
1. `encode_base_multipart_receive_req()` to
`encode_pldm_base_multipart_receive_req()`
2. `decode_base_multipart_receive_resp()` to
`decode_pldm_base_multipart_receive_resp()`
3. `struct pldm_multipart_receive_resp` to
`struct pldm_base_multipart_receive_resp`
4. `struct pldm_multipart_receive_req` to
`struct pldm_base_multipart_receive_req`
This also removes `__attribute__((packed))` from
`struct pldm_base_multipart_receive_req` to adapt [1].
[1]: https://github.com/openbmc/libpldm/blob/main/docs/checklists/changes.md#adding-a-new-api
Change-Id: Iefbec44efd48923fa4458228d80678a3995742e6
Signed-off-by: Chau Ly <chaul@amperecomputing.com>
diff --git a/src/dsp/base.c b/src/dsp/base.c
index 7609f25..c8a9210 100644
--- a/src/dsp/base.c
+++ b/src/dsp/base.c
@@ -583,8 +583,8 @@
}
LIBPLDM_ABI_TESTING
-int encode_base_multipart_receive_req(
- uint8_t instance_id, const struct pldm_multipart_receive_req *req,
+int encode_pldm_base_multipart_receive_req(
+ uint8_t instance_id, const struct pldm_base_multipart_receive_req *req,
struct pldm_msg *msg, size_t payload_length)
{
PLDM_MSGBUF_DEFINE_P(buf);
@@ -622,10 +622,10 @@
}
LIBPLDM_ABI_TESTING
-int decode_base_multipart_receive_resp(const struct pldm_msg *msg,
- size_t payload_length,
- struct pldm_multipart_receive_resp *resp,
- uint32_t *data_integrity_checksum)
+int decode_pldm_base_multipart_receive_resp(
+ const struct pldm_msg *msg, size_t payload_length,
+ struct pldm_base_multipart_receive_resp *resp,
+ uint32_t *data_integrity_checksum)
{
PLDM_MSGBUF_DEFINE_P(buf);
int rc;
@@ -678,8 +678,9 @@
LIBPLDM_ABI_TESTING
int encode_base_multipart_receive_resp(
- uint8_t instance_id, const struct pldm_multipart_receive_resp *resp,
- uint32_t checksum, struct pldm_msg *msg, size_t *payload_length)
+ uint8_t instance_id,
+ const struct pldm_base_multipart_receive_resp *resp, uint32_t checksum,
+ struct pldm_msg *msg, size_t *payload_length)
{
PLDM_MSGBUF_DEFINE_P(buf);
int rc;