From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id D20B868F7 for ; Tue, 25 Apr 2017 10:30:30 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id r190so89097874wme.1 for ; Tue, 25 Apr 2017 01:30:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=grH9mXAkGpKDThAf5u+BUJhgdoVjfahWuVrkRLgQe6U=; b=gV5fpBc7YFD/U6Qbg1p/xdF1aBP25Sg0OTmBdEbKUjMDm0DAt8dUHfLmhUfIy0cDky 3yrrr7Ga78L++vAtsQ6+QeS9CgPqjayFGMm6hwxwUkp6kwD0FQoX//9i0ZwmC2frrvg7 Q58Oi9WqJJhlxes9vXwHZDKQzIcYHfbUIuSiPXp5YqTE+G8z/PMc6vTW48MxWatA2tt/ St4UPZ4a926MuAUpawcB4xGI4tJMfbLvO3cfz0hvTZAEgpdxj9QUpPctBHTyjIZNkXsW T/Lrmy245ymujjU4dizEqh9kV2nnYb2DYTEEk7w6lq7KNX2Y7GDgZJfqjG6C1+tS59AP REYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=grH9mXAkGpKDThAf5u+BUJhgdoVjfahWuVrkRLgQe6U=; b=CdB46Bbara8drfnxghVKFxonNWoW//n6ZPVvbdJ5tFQW94FmJOB5Ek0kd1RfYO+rw7 35Bthoz6aBkGV0QWqt0LmVyw2VAXKkTUY0i3QScJ34JIUpoO0LgOXnBkPf4TfdK0VxlR J7ZyCPyrnbIZKb2xYtZiRQvknEEr4kfeHPj8QOm+3qlpQU3UpyxWOmnkc/MHijZnkfwx MnqCrUUWJ+gnT+XcE127qJKDDIa1mSnVlWGwJAVzSwvw0IZvqLeO0Alo2elVTJdTOjBN 83OWGtmJoTevyBML0ncirr68BVaGAjEpljKdPhSluLxKQWvi5lqB6gl5+H57gnSghiTJ 3iMg== X-Gm-Message-State: AN3rC/4+dkXeTH+5dd1ir7yz0PlnSfXG2IY+PTH9CfY0m71uIvvK5iYi D83AwlJCJTMNHTWj X-Received: by 10.28.34.130 with SMTP id i124mr11778903wmi.111.1493109030450; Tue, 25 Apr 2017 01:30:30 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id e21sm3874021wma.5.2017.04.25.01.30.29 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 25 Apr 2017 01:30:29 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Cc: Remy Horton Date: Tue, 25 Apr 2017 10:30:04 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v2 10/13] metrics: fix errors in exported header X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Apr 2017 08:30:31 -0000 This commit addresses the following compilation errors: In file included from /tmp/check-includes.sh.21060.c:1:0: build/include/rte_metrics.h:91:2: error: unknown type name 'uint16_t' [...] It also adds C++ awareness to rte_metrics.h. Fixes: 349950ddb9c5 ("metrics: add information metrics library") Cc: Remy Horton Signed-off-by: Adrien Mazarguil --- lib/librte_metrics/rte_metrics.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_metrics/rte_metrics.h b/lib/librte_metrics/rte_metrics.h index fd0154f..0fa3104 100644 --- a/lib/librte_metrics/rte_metrics.h +++ b/lib/librte_metrics/rte_metrics.h @@ -52,6 +52,12 @@ #ifndef _RTE_METRICS_H_ #define _RTE_METRICS_H_ +#include + +#ifdef __cplusplus +extern "C" { +#endif + /** Maximum length of metric name (including null-terminator) */ #define RTE_METRICS_MAX_NAME_LEN 64 @@ -237,4 +243,8 @@ int rte_metrics_update_values( const uint64_t *values, uint32_t count); +#ifdef __cplusplus +} +#endif + #endif -- 2.1.4