aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/odp_event.c
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>2017-07-04 15:54:02 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2017-12-27 21:41:45 +0300
commit342c869a157bcd7ef655b12b96e8b5fc20fea839 (patch)
treed301744458415a98fe4c3121123474fac31050a3 /platform/linux-generic/odp_event.c
parent59c8dc22f2d216aabe0de7e591b75cc35d5bf842 (diff)
linux-generic: events subtype implementation
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/odp_event.c')
-rw-r--r--platform/linux-generic/odp_event.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/platform/linux-generic/odp_event.c b/platform/linux-generic/odp_event.c
index c6e7bb453..991d0e17d 100644
--- a/platform/linux-generic/odp_event.c
+++ b/platform/linux-generic/odp_event.c
@@ -21,6 +21,21 @@ odp_event_type_t odp_event_type(odp_event_t event)
return _odp_buffer_event_type(odp_buffer_from_event(event));
}
+odp_event_subtype_t odp_event_subtype(odp_event_t event)
+{
+ return _odp_buffer_event_subtype(odp_buffer_from_event(event));
+}
+
+odp_event_type_t odp_event_types(odp_event_t event,
+ odp_event_subtype_t *subtype)
+{
+ odp_buffer_t buf = odp_buffer_from_event(event);
+
+ *subtype = _odp_buffer_event_subtype(buf);
+
+ return _odp_buffer_event_type(buf);
+}
+
void odp_event_free(odp_event_t event)
{
switch (odp_event_type(event)) {