Replaced ODP_DEPRECATED macro (which was based on GCC __attribute__) with compiler independent mechanism to control if deprecated API definitions are visible to the application. ODP_DEPRECATED_API can be used both in application and implementation to check if deprecated APIs are enabled. By default those are disabled. Implementation may optimize the normal (new API) code path.
ODP_DEPRECATE() macro is used to rename definitions, so that data structure sizes are equal on both options. This enables implementation to serve both options with a single library (if it wishes to do so). Petri Savolainen (4): api: hints: remove ODP_DEPRECATED from API api: deprecated: add configure option and macros test: crypto: remove references to deprecated crypto apis api: crypto: enforce deprecated API status configure.ac | 19 +++++++- doc/application-api-guide/api_guide_lines.dox | 6 +-- doc/platform-api-guide/Doxyfile | 1 + doc/process-guide/release-guide.adoc | 6 +-- example/ipsec/odp_ipsec_misc.h | 4 +- example/ipsec/odp_ipsec_sa_db.c | 4 +- example/ipsec/odp_ipsec_stream.c | 6 +-- include/odp/api/spec/.gitignore | 1 + include/odp/api/spec/crypto.h | 29 +++++++------ include/odp/api/spec/deprecated.h.in | 50 ++++++++++++++++++++++ include/odp/api/spec/hints.h | 6 --- include/odp_api.h | 1 + platform/Makefile.inc | 1 + platform/linux-generic/Makefile.am | 1 + .../linux-generic/include/odp/api/deprecated.h | 26 +++++++++++ platform/linux-generic/odp_crypto.c | 45 +++++++++++++------ test/common_plat/performance/odp_crypto.c | 4 +- 17 files changed, 161 insertions(+), 49 deletions(-) create mode 100644 include/odp/api/spec/deprecated.h.in create mode 100644 platform/linux-generic/include/odp/api/deprecated.h -- 2.8.1
