diff mbox

[PATCHv5,08/19] api: queues: add strong typing handle display function

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

Commit Message

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

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

Patch

diff --git a/include/odp/api/queue.h b/include/odp/api/queue.h
index b63cc34..0b72a5e 100644
--- a/include/odp/api/queue.h
+++ b/include/odp/api/queue.h
@@ -298,6 +298,19 @@  odp_schedule_prio_t odp_queue_sched_prio(odp_queue_t queue);
 odp_schedule_group_t odp_queue_sched_group(odp_queue_t queue);
 
 /**
+ * Get printable value for an odp_queue_t
+ *
+ * @param hdl  odp_queue_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_queue_t handle.
+ */
+uint64_t odp_queue_to_u64(odp_queue_t hdl);
+
+/**
  * @}
  */