doc: update the SDK version for DPAA2
[dpdk.git] / lib / librte_metrics / rte_metrics.h
index fd0154f..297300a 100644 (file)
 #ifndef _RTE_METRICS_H_
 #define _RTE_METRICS_H_
 
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** Maximum length of metric name (including null-terminator) */
 #define RTE_METRICS_MAX_NAME_LEN 64
 
@@ -112,7 +118,8 @@ void rte_metrics_init(int socket_id);
  * is required for updating said metric's value.
  *
  * @param name
- *   Metric name
+ *   Metric name. If this exceeds RTE_METRICS_MAX_NAME_LEN (including
+ *   the NULL terminator), it is truncated.
  *
  * @return
  *  - Zero or positive: Success (index key of new metric)
@@ -237,4 +244,8 @@ int rte_metrics_update_values(
        const uint64_t *values,
        uint32_t count);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif