diff mbox

[PATCHv5,05/19] api: packets: add strong typing handle display function

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

Commit Message

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

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

Patch

diff --git a/include/odp/api/packet.h b/include/odp/api/packet.h
index 3c1c646..fa0e442 100644
--- a/include/odp/api/packet.h
+++ b/include/odp/api/packet.h
@@ -869,6 +869,31 @@  void odp_packet_print(odp_packet_t pkt);
  */
 int odp_packet_is_valid(odp_packet_t pkt);
 
+/**
+ * Get printable value for an odp_packet_t
+ *
+ * @param hdl  odp_packet_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_packet_t handle.
+ */
+uint64_t odp_packet_to_u64(odp_packet_t hdl);
+
+/**
+ * Get printable value for an odp_packet_seg_t
+ *
+ * @param hdl  odp_packet_seg_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_packet_seg_t handle.
+ */
+uint64_t odp_packet_seg_to_u64(odp_packet_seg_t hdl);
 
 /**
  * @}