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 737F9A00C5; Wed, 16 Feb 2022 16:16:25 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6CDFE411EE; Wed, 16 Feb 2022 16:15:54 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id D144A41169; Wed, 16 Feb 2022 16:15:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645024551; x=1676560551; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=i8PdNgpO9+wh3DYGwtbwcUAjBvyZpDW+FtnrQgRiyg4=; b=Uj+9IwJ3qcjytsmZFscrirBoAk/w9p5DNfj+Sj1shyVJu5vcxKtu4TMF QypHLFManW9PuRDNZlFfpS6Ry3ViPL6YWyKaGzV7cVvr2tY6YQqCQwJgO 42+YHH68je9cCexpxi7nimm9BOuV43O0XvEKgOe7BNir9/JrRS3BRPxx7 xbbjW62IZSprtuM0RFxeNcMhOfjterMms+m0ZoBpO874ImgaWAJuPksa8 ZAgx+3eh7UAleayvAZnF4oDPFKlWT4ihKdAMQCpJ2GA0lOmmkyMn3Tq0S FKteOIv4ZwSWx3tPJQ4DomzPBkL3CCcJGvaUvdEM1WGDH2ZDZMUD1mvi4 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10260"; a="250824532" X-IronPort-AV: E=Sophos;i="5.88,374,1635231600"; d="scan'208";a="250824532" 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:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,374,1635231600"; d="scan'208";a="487084445" Received: from unknown (HELO silpixa00400883.ir.intel.com) ([10.243.23.143]) by orsmga003.jf.intel.com with ESMTP; 16 Feb 2022 07:15:30 -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 v2 07/11] eventdev: fix missing C++ guards Date: Wed, 16 Feb 2022 15:14:52 +0000 Message-Id: <20220216151456.114242-8-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: 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 Acked-by: Bruce Richardson --- v2: Added missing apostrophe to commit message. --- 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