diff mbox

[PATCHv5,07/19] api: pool: add strong typing handle display function

Message ID 1422938699-12877-8-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit e51eb6eb850a61b20ecb0862e0e454d3905cd98a
Headers show

Commit Message

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

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

Patch

diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h
index 1582102..b6b4962 100644
--- a/include/odp/api/pool.h
+++ b/include/odp/api/pool.h
@@ -184,6 +184,19 @@  int odp_pool_info(odp_pool_t pool, odp_pool_info_t *info);
 void odp_pool_print(odp_pool_t pool);
 
 /**
+ * Get printable value for an odp_pool_t
+ *
+ * @param hdl  odp_pool_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_pool_t handle.
+ */
+uint64_t odp_pool_to_u64(odp_pool_t hdl);
+
+/**
  * Buffer alloc
  *
  * The validity of a buffer can be cheked at any time with odp_buffer_is_valid()