diff mbox

[PATCHv5,02/19] api: classification: add strong typing handle display functions

Message ID 1422938699-12877-3-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit 4be453137b3418a71bec58168dd5e71e36074365
Headers show

Commit Message

Bill Fischofer Feb. 3, 2015, 4:44 a.m. UTC
Add functions odp_cos_to_u64(), odp_pmr_to_u64() and odp_pmr_set_to_u64()

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

Patch

diff --git a/include/odp/api/classification.h b/include/odp/api/classification.h
index 5c6636f..3479754 100644
--- a/include/odp/api/classification.h
+++ b/include/odp/api/classification.h
@@ -391,6 +391,45 @@  int odp_pktio_pmr_match_set_cos(odp_pmr_set_t pmr_set_id, odp_pktio_t src_pktio,
 				odp_cos_t dst_cos);
 
 /**
+ * Get printable value for an odp_cos_t
+ *
+ * @param hdl  odp_cos_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_cos_t handle.
+ */
+uint64_t odp_cos_to_u64(odp_cos_t hdl);
+
+/**
+ * Get printable value for an odp_pmr_t
+ *
+ * @param hdl  odp_pmr_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_pmr_t handle.
+ */
+uint64_t odp_pmr_to_u64(odp_pmr_t hdl);
+
+/**
+ * Get printable value for an odp_pmr_set_t
+ *
+ * @param hdl  odp_pmr_set_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_pmr_set_t handle.
+ */
+uint64_t odp_pmr_set_to_u64(odp_pmr_set_t hdl);
+
+/**
  * @}
  */