diff mbox

[PATCHv5,04/19] api: events: add strong typing handle display function

Message ID 1422938699-12877-5-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit 90faa9548edee534dca2b4e94a64a2612e56e90e
Headers show

Commit Message

Bill Fischofer Feb. 3, 2015, 4:44 a.m. UTC
Add function odp_event_to_u64()

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 include/odp/api/event.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)
diff mbox

Patch

diff --git a/include/odp/api/event.h b/include/odp/api/event.h
index 50c031a..0fdff29 100644
--- a/include/odp/api/event.h
+++ b/include/odp/api/event.h
@@ -69,6 +69,18 @@  extern "C" {
  */
 int odp_event_type(odp_event_t event);
 
+/**
+ * Get printable value for an odp_event_t
+ *
+ * @param hdl  odp_event_t handle to be printed
+ * @return     uint64_t value that can be used to print/display this
+ *             handle
+ *
+ * @note This routine is intended to be used for diagnostic purposes
+ * to enable applications to generate a printable value that represents
+ * an odp_event_t handle.
+ */
+uint64_t odp_event_to_u64(odp_event_t hdl);
 
 /**
  * @}