From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 34B55A00C5; Wed, 16 Feb 2022 16:15:49 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B07C141178; Wed, 16 Feb 2022 16:15:44 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 0280040150; Wed, 16 Feb 2022 16:15:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645024543; x=1676560543; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oCE/rzsTAPHDJLXPQ1oNyoIih5xiyXgO7g9AMj6F9os=; b=nm30glCIa/TkFaAZ9jNpCKnkgs/i21KOIrIs3v3VUpEcoXzNOKt1om1J ivW+ai+vrqh0nebjyQe8zwXA+LeDq+TkBSQP+SaFhIrN5OoUDnEB/8FYe RxSBPMPR7N2KdtOzt4a+kFgo8ygrsv+k9TQgFNj5TEHMcOhQa1R21I+mJ CjfmUriUJdjDChwCKnnCvitb5t44hgDQzhP+ykTy3GdnaP6NQbbUonjjM Eyd/HAWnQrJn08m+ID+7Mgg0Eqx5geAB7QMfMLOvcjxPWsBICN/76NnAv U6A5N6gFvORf2TSGOj8WSKKkycfSG5TlfI949FTOGYmJoQofwyerL6+le A==; X-IronPort-AV: E=McAfee;i="6200,9189,10260"; a="250824463" X-IronPort-AV: E=Sophos;i="5.88,374,1635231600"; d="scan'208";a="250824463" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2022 07:15:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,374,1635231600"; d="scan'208";a="487084225" Received: from unknown (HELO silpixa00400883.ir.intel.com) ([10.243.23.143]) by orsmga003.jf.intel.com with ESMTP; 16 Feb 2022 07:15:18 -0800 From: Brian Dooley To: dev@dpdk.org Cc: Brian Dooley , ciara.power@intel.com, stable@dpdk.org, Bruce Richardson , Brian Archbold , Kevin Laatz , Radu Nicolau , Harry van Haaren Subject: [PATCH v2 02/11] telemetry: fix missing C++ guards Date: Wed, 16 Feb 2022 15:14:47 +0000 Message-Id: <20220216151456.114242-3-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220216151456.114242-1-brian.dooley@intel.com> References: <20220215170817.662136-1-brian.dooley@intel.com> <20220216151456.114242-1-brian.dooley@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Some public header files were missing 'extern "C"' C++ guards, and couldn't be used by C++ applications. Add the missing guards. Fixes: 8877ac688b52 ("telemetry: introduce infrastructure") Cc: ciara.power@intel.com Cc: stable@dpdk.org Signed-off-by: Brian Dooley Acked-by: Bruce Richardson --- v2: Added missing apostrophe to commit message. --- lib/telemetry/rte_telemetry.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/telemetry/rte_telemetry.h b/lib/telemetry/rte_telemetry.h index 7bca8a9a49..3372b32f38 100644 --- a/lib/telemetry/rte_telemetry.h +++ b/lib/telemetry/rte_telemetry.h @@ -9,6 +9,10 @@ #ifndef _RTE_TELEMETRY_H_ #define _RTE_TELEMETRY_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** Maximum length for string used in object. */ #define RTE_TEL_MAX_STRING_LEN 128 /** Maximum length of string. */ @@ -294,4 +298,8 @@ rte_tel_data_alloc(void); void rte_tel_data_free(struct rte_tel_data *data); +#ifdef __cplusplus +} +#endif + #endif -- 2.25.1