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 3FFC9A00C5; Tue, 15 Feb 2022 18:14:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F299541180; Tue, 15 Feb 2022 18:14:06 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 230AC41177; Tue, 15 Feb 2022 18:14:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644945245; x=1676481245; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vLjQ3cGuvlbq93W5u2qjSwFrWpdYD6jgKMTK1v/tZgU=; b=h0zpLZ7SK5SjpAqUl3zvM5zE4YaiDIaAB4vpUZeBnJ62P25r/zCxvblp 9OHbkQi2l55eD1MdD0a+TdDfNDPi0AJNhYEadaRm8gIM9rinlVV8VLoVq 5rMV8uzDDm9T9Dy7aALF2ABZ1IlubvtNhRKK+TmnR1BKlaO+/Bz20kfiq 7AanEjEzD3sktN/vM1FLtPkTBiIRxYtle/NbF+owYzrfAhrPG4NXpbZs7 LgYZbAHJtDjvSecvu9mBumgV2TtYb1YafCLq8x+uJENLMvfgjLC3Nb8pT y7bi849hlPSVXTfbOcnQJ1w0n36l4J74lAOu+9M809/iwvjsstmr5ZcGG A==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="336831107" X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="336831107" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 09:08:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="703802282" Received: from silpixa00400883.ir.intel.com ([10.243.23.143]) by orsmga005.jf.intel.com with ESMTP; 15 Feb 2022 09:08:38 -0800 From: Brian Dooley To: dev@dpdk.org Cc: Brian Dooley , bruce.richardson@intel.com, thomas@monjalon.net, stable@dpdk.org, Jerin Jacob , Harry van Haaren Subject: [PATCH 07/11] eventdev: fix missing C++ guards Date: Tue, 15 Feb 2022 17:08:13 +0000 Message-Id: <20220215170817.662136-8-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215170817.662136-1-brian.dooley@intel.com> References: <20220215170817.662136-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 couldnt be used by C++ applications. Add the missing guards. Fixes: dc39e2f359b5 ("eventdev: add ring structure for events") Fixes: 7a3357205755 ("lib: remove C++ include guard from private headers") Cc: bruce.richardson@intel.com Cc: thomas@monjalon.net Cc: stable@dpdk.org Signed-off-by: Brian Dooley --- lib/eventdev/eventdev_pmd.h | 8 ++++++++ lib/eventdev/eventdev_pmd_pci.h | 8 ++++++++ lib/eventdev/eventdev_pmd_vdev.h | 8 ++++++++ lib/eventdev/rte_event_ring.h | 9 +++++++++ 4 files changed, 33 insertions(+) diff --git a/lib/eventdev/eventdev_pmd.h b/lib/eventdev/eventdev_pmd.h index b05ffce549..ce469d47a6 100644 --- a/lib/eventdev/eventdev_pmd.h +++ b/lib/eventdev/eventdev_pmd.h @@ -5,6 +5,10 @@ #ifndef _RTE_EVENTDEV_PMD_H_ #define _RTE_EVENTDEV_PMD_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** @file * RTE Event PMD APIs * @@ -1366,4 +1370,8 @@ void event_dev_fp_ops_set(struct rte_event_fp_ops *fp_ops, const struct rte_eventdev *dev); +#ifdef __cplusplus +} +#endif + #endif /* _RTE_EVENTDEV_PMD_H_ */ diff --git a/lib/eventdev/eventdev_pmd_pci.h b/lib/eventdev/eventdev_pmd_pci.h index 499852db16..24b56faaa9 100644 --- a/lib/eventdev/eventdev_pmd_pci.h +++ b/lib/eventdev/eventdev_pmd_pci.h @@ -5,6 +5,10 @@ #ifndef _RTE_EVENTDEV_PMD_PCI_H_ #define _RTE_EVENTDEV_PMD_PCI_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** @file * RTE Eventdev PCI PMD APIs * @@ -150,4 +154,8 @@ rte_event_pmd_pci_remove(struct rte_pci_device *pci_dev, return 0; } +#ifdef __cplusplus +} +#endif + #endif /* _RTE_EVENTDEV_PMD_PCI_H_ */ diff --git a/lib/eventdev/eventdev_pmd_vdev.h b/lib/eventdev/eventdev_pmd_vdev.h index d9ee7277dd..77904910a2 100644 --- a/lib/eventdev/eventdev_pmd_vdev.h +++ b/lib/eventdev/eventdev_pmd_vdev.h @@ -5,6 +5,10 @@ #ifndef _RTE_EVENTDEV_PMD_VDEV_H_ #define _RTE_EVENTDEV_PMD_VDEV_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** @file * RTE Eventdev VDEV PMD APIs * @@ -99,4 +103,8 @@ rte_event_pmd_vdev_uninit(const char *name) return 0; } +#ifdef __cplusplus +} +#endif + #endif /* _RTE_EVENTDEV_PMD_VDEV_H_ */ diff --git a/lib/eventdev/rte_event_ring.h b/lib/eventdev/rte_event_ring.h index c0861b0ec2..0b9aefb000 100644 --- a/lib/eventdev/rte_event_ring.h +++ b/lib/eventdev/rte_event_ring.h @@ -14,6 +14,10 @@ #ifndef _RTE_EVENT_RING_ #define _RTE_EVENT_RING_ +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -266,4 +270,9 @@ rte_event_ring_get_capacity(const struct rte_event_ring *r) { return rte_ring_get_capacity(&r->r); } + +#ifdef __cplusplus +} +#endif + #endif -- 2.25.1