diff options
author | Bill Fischofer <bill.fischofer@linaro.org> | 2015-02-02 22:44:41 -0600 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-02-04 12:02:08 +0300 |
commit | 2b340424af49f5122fc17d58978ec40f155220da (patch) | |
tree | a2f47238e2bbf621bcf5b62f48e6499a0f559a77 /include/odp/api/buffer.h | |
parent | d2f8fce70525eaf3d39128bc9493cfbc515c25c3 (diff) |
api: buffers: add strong typing handle diplay function
Add function odp_buffer_to_u64()
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp/api/buffer.h')
-rw-r--r-- | include/odp/api/buffer.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/odp/api/buffer.h b/include/odp/api/buffer.h index 12b2f5af8..09bddf223 100644 --- a/include/odp/api/buffer.h +++ b/include/odp/api/buffer.h @@ -113,6 +113,19 @@ odp_pool_t odp_buffer_pool(odp_buffer_t buf); void odp_buffer_print(odp_buffer_t buf); /** + * Get printable value for an odp_buffer_t + * + * @param hdl odp_buffer_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_buffer_t handle. + */ +uint64_t odp_buffer_to_u64(odp_buffer_t hdl); + +/** * @} */ |