We need a convenient function which calls the right type-depending free()
function.

Signed-off-by: Zoltan Kiss <[email protected]>
---
 include/odp/api/event.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/include/odp/api/event.h b/include/odp/api/event.h
index 63b476f..7ec5e76 100644
--- a/include/odp/api/event.h
+++ b/include/odp/api/event.h
@@ -78,6 +78,16 @@ int odp_event_type(odp_event_t event);
 uint64_t odp_event_to_u64(odp_event_t hdl);
 
 /**
+ * Call the free function of the event's type
+ *
+ * @param event    Event handle
+ *
+ * @note This routine aborts if event type is unsupported
+ *
+ */
+void odp_event_free(odp_event_t event);
+
+/**
  * @}
  */
 
-- 
1.9.1

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to