diff mbox

[PATCHv5,06/19] api: pktio: add strong typing handle display function

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

Commit Message

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

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

Patch

diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h
index da7bc3f..3e4bac4 100644
--- a/include/odp/api/packet_io.h
+++ b/include/odp/api/packet_io.h
@@ -232,6 +232,18 @@  int odp_pktio_skip_set(odp_pktio_t pktio_in, uint32_t offset);
  */
 int odp_pktio_headroom_set(odp_pktio_t pktio_in, uint32_t headroom);
 
+/**
+ * Get printable value for an odp_pktio_t
+ *
+ * @param hdl  odp_pktio_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_pktio_t handle.
+ */
+uint64_t odp_pktio_to_u64(odp_pktio_t hdl);
 
 /**
  * @}