base: Stabilise pldm_msg_hdr_correlate_response()
Use of pldm_msg_hdr_correlate_response() is demonstrated in the
following patch to pldmd:
https://gerrit.openbmc.org/c/openbmc/pldm/+/66819
Change-Id: I875b2dee5247c986a36ccd456956fb7e2a18d11a
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7249d94..2443b16 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -57,6 +57,8 @@
- pldm_transport_mctp_demux_map_tid()
- pldm_transport_mctp_demux_unmap_tid()
+4. base: Stabilise pldm_msg_hdr_correlate_response()
+
### Deprecated
1. All the existing "requester" APIs from `libpldm/pldm.h` (also known as
diff --git a/abi/x86_64/gcc.dump b/abi/x86_64/gcc.dump
index 353c88b..7e2d727 100644
--- a/abi/x86_64/gcc.dump
+++ b/abi/x86_64/gcc.dump
@@ -4641,6 +4641,28 @@
'Source' => 'base.c',
'SourceLine' => '78'
},
+ '5034' => {
+ 'Header' => 'base.h',
+ 'Line' => '169',
+ 'Param' => {
+ '0' => {
+ 'name' => 'req',
+ 'type' => '5101'
+ },
+ '1' => {
+ 'name' => 'resp',
+ 'type' => '5101'
+ }
+ },
+ 'Reg' => {
+ '0' => 'rdi',
+ '1' => 'rsi'
+ },
+ 'Return' => '5094',
+ 'ShortName' => 'pldm_msg_hdr_correlate_response',
+ 'Source' => 'base.c',
+ 'SourceLine' => '69'
+ },
'51025' => {
'Header' => 'utils.h',
'Line' => '37',
@@ -9609,6 +9631,7 @@
'pldm_instance_id_free' => 1,
'pldm_is_current_parent_child' => 1,
'pldm_is_empty_entity_assoc_tree' => 1,
+ 'pldm_msg_hdr_correlate_response' => 1,
'pldm_open' => 1,
'pldm_pdr_add_check' => 1,
'pldm_pdr_add_fru_record_set_check' => 1,
diff --git a/src/base.c b/src/base.c
index 39dcd65..908621b 100644
--- a/src/base.c
+++ b/src/base.c
@@ -65,7 +65,7 @@
return PLDM_SUCCESS;
}
-LIBPLDM_ABI_TESTING
+LIBPLDM_ABI_STABLE
bool pldm_msg_hdr_correlate_response(const struct pldm_msg_hdr *req,
const struct pldm_msg_hdr *resp)
{