diff options
author | Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> | 2017-10-22 10:53:03 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2018-01-18 22:07:21 +0300 |
commit | ad317cdf97c0f19d27bca380d06617937a0e548d (patch) | |
tree | 3fb5068523a5875c3cf397fad4b8423c5aa8d88f /include/odp/api/abi-default/event.h | |
parent | 7f1ea3704569c50a48f1029c0bd8f3f0bf84f43e (diff) |
include: move default ABI headers
Reduce amount of directory levels by moving default ABI headers to
odp/api/abi-default.
Signed-off-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/abi-default/event.h')
-rw-r--r-- | include/odp/api/abi-default/event.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/include/odp/api/abi-default/event.h b/include/odp/api/abi-default/event.h new file mode 100644 index 000000000..b52a1a222 --- /dev/null +++ b/include/odp/api/abi-default/event.h @@ -0,0 +1,50 @@ +/* Copyright (c) 2017, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef ODP_ABI_EVENT_H_ +#define ODP_ABI_EVENT_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include <stdint.h> + +/** @internal Dummy type for strong typing */ +typedef struct { char dummy; /**< @internal Dummy */ } _odp_abi_event_t; + +/** @ingroup odp_event + * @{ + */ + +typedef _odp_abi_event_t *odp_event_t; + +#define ODP_EVENT_INVALID ((odp_event_t)NULL) + +typedef enum odp_event_type_t { + ODP_EVENT_BUFFER = 1, + ODP_EVENT_PACKET = 2, + ODP_EVENT_TIMEOUT = 3, + ODP_EVENT_CRYPTO_COMPL = 4, + ODP_EVENT_IPSEC_STATUS = 5 +} odp_event_type_t; + +typedef enum odp_event_subtype_t { + ODP_EVENT_NO_SUBTYPE = 0, + ODP_EVENT_PACKET_BASIC = 1, + ODP_EVENT_PACKET_CRYPTO = 2, + ODP_EVENT_PACKET_IPSEC = 3 +} odp_event_subtype_t; + +/** + * @} + */ + +#ifdef __cplusplus +} +#endif + +#endif |