aboutsummaryrefslogtreecommitdiff
path: root/include/odp_api.h
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@linaro.org>2017-03-30 16:58:54 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2017-06-16 16:51:09 +0300
commit2b34cda253fd28f3b373dc3ee66753d47a0c9b33 (patch)
tree6d7072ae3a25dca16d99bbc74625dffb85c3f588 /include/odp_api.h
parent166e4e6a7f2e289f305203e75c68cea56d015c08 (diff)
api: deprecated: add configure option and macros
Added configuration option --enable-deprecated to control if deprecated APIs are enabled or disabled. Added ODP_DEPRECATED_API macro into the API. Its value can be used to check if deprecated API definitions are enabled or disabled. Deprecated APIs are disabled by default. Deprecated APIs are meant to be removed completely in a later API version. Added ODP_DEPRECATE() macro to enforce deprecation of API definitions. When deprecated APIs are disabled, the macro renames API definitions so that application cannot use those any more, but a single implementation library can serve applications built with both options. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp_api.h')
-rw-r--r--include/odp_api.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/odp_api.h b/include/odp_api.h
index ec7fcd2e7..060ec888b 100644
--- a/include/odp_api.h
+++ b/include/odp_api.h
@@ -18,6 +18,7 @@
extern "C" {
#endif
+#include <odp/api/deprecated.h>
#include <odp/api/version.h>
#include <odp/api/std_types.h>
#include <odp/api/compiler.h>