dsp: fru: Rename get_fru_record_by_option_check()
We drop the `_check` suffix so that it is now
`get_fru_record_by_option()`.
To do so, introduce some infrastructure that makes renaming APIs
easier and scripts the migration for users. The renaming process comes
in several parts, which are captured in the addition to the changes
checklist.
The coccinelle script based off the insight at [1].
[1]: https://stackoverflow.com/questions/42776220/coccinelle-help-to-replace-a-function-with-variable-args
Change-Id: I730b76c3e3c92dcc046fecbee76cd6b040f11d21
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/meson.build b/meson.build
index f9c943b..0a2cc04 100644
--- a/meson.build
+++ b/meson.build
@@ -27,9 +27,13 @@
# ABI control
visible = '__attribute__((visibility("default")))'
+libpldm_deprecated_aliases = []
if get_option('abi').contains('deprecated')
conf.set('LIBPLDM_ABI_DEPRECATED', visible)
add_project_arguments('-DLIBPLDM_API_DEPRECATED', language: ['c', 'cpp'])
+ libpldm_deprecated_aliases += [
+ ['get_fru_record_by_option_check', 'get_fru_record_by_option'],
+ ]
else
conf.set('LIBPLDM_ABI_DEPRECATED', '')
endif