aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/abi-default/event.h
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@linaro.org>2018-01-29 16:58:47 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2018-02-05 11:52:20 +0300
commiteeb098456bc51314cd6520d05f82f92353ba4a02 (patch)
treee7ccef723ebdb4e80ba00163858944e5b22be874 /include/odp/api/abi-default/event.h
parent379d527e891e1ad246b0bb796e6fc938618758c4 (diff)
linux-gen: packet: inline conversions between packet and event
Inline implementation of packet_from_event and packet_to_event functions. 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 'include/odp/api/abi-default/event.h')
-rw-r--r--include/odp/api/abi-default/event.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/odp/api/abi-default/event.h b/include/odp/api/abi-default/event.h
index b52a1a222..0ed6dd094 100644
--- a/include/odp/api/abi-default/event.h
+++ b/include/odp/api/abi-default/event.h
@@ -22,7 +22,7 @@ typedef struct { char dummy; /**< @internal Dummy */ } _odp_abi_event_t;
typedef _odp_abi_event_t *odp_event_t;
-#define ODP_EVENT_INVALID ((odp_event_t)NULL)
+#define ODP_EVENT_INVALID ((odp_event_t)0)
typedef enum odp_event_type_t {
ODP_EVENT_BUFFER = 1,