diff options
author | Petri Savolainen <petri.savolainen@linaro.org> | 2018-05-04 15:20:33 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2018-05-10 22:21:50 +0300 |
commit | 3abbe8b729310d29b9a2c84a7d7a11771513908d (patch) | |
tree | cce9eb7bc6ce5ca43ab94decc8550c6640d1dc5a /platform/linux-generic/include-abi | |
parent | f49289a7f621ffe5c981caa8531623d9e0a4abd9 (diff) |
linux-gen: event: inline event_type function
Inline odp_event_type() as an example how current inline
mechanism can be simplified. Only one file is needed for inline
function definitions (xxx_inlines.h) and _ODP_NO_INLINE macro
selects when non-inlined implementation is needed (only by
xxx_api.c files). Implementation uses internally always inlined
functions. Inlined function name is changed with macro from
odp_foo() to __odp_foo().
Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/include-abi')
-rw-r--r-- | platform/linux-generic/include-abi/odp/api/abi/event.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/linux-generic/include-abi/odp/api/abi/event.h b/platform/linux-generic/include-abi/odp/api/abi/event.h index 7ba426a6c..d7bd57c0f 100644 --- a/platform/linux-generic/include-abi/odp/api/abi/event.h +++ b/platform/linux-generic/include-abi/odp/api/abi/event.h @@ -43,6 +43,9 @@ typedef enum odp_event_subtype_t { ODP_EVENT_PACKET_IPSEC = 3 } odp_event_subtype_t; +/* Inlined functions for non-ABI compat mode */ +#include <odp/api/plat/event_inlines.h> + /** * @} */ |