diff mbox

[API-NEXT,v2,4/9] event: define odp_event_free()

Message ID 1433505231-28843-5-git-send-email-zoltan.kiss@linaro.org
State New
Headers show

Commit Message

Zoltan Kiss June 5, 2015, 11:53 a.m. UTC
We need a convenient function which calls the right type-depending free()
function.

Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
---
 include/odp/api/event.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox

Patch

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);
+
+/**
  * @}
  */