From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 80DB2A0350; Thu, 25 Jun 2020 22:32:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 64F891BC24; Thu, 25 Jun 2020 22:32:24 +0200 (CEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by dpdk.org (Postfix) with ESMTP id A0A1D1B13C for ; Thu, 25 Jun 2020 22:32:21 +0200 (CEST) Received: by mail-pf1-f177.google.com with SMTP id u185so1548730pfu.1 for ; Thu, 25 Jun 2020 13:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PbUHvCGtslm4115xEnWZtXPRTamspE8lNJkHz8/fTlI=; b=hcGpFOdcbm30T0s3+DOc9RcV9Y1XWIqe5VCfbCNH4vxOjDYputiHU6zKOIPO4rtQmC JbP3Y4P38LrJVRN5azUKfBUgIxMGRBK8S5OCFhM+VkH1l6NPUaL5uxw9n3UXxUuO3yFb T9ybSxt1ibqSA3U+gMezVAFSeC1s9juW+xp/KnBrDez9WEMOQiFljeAXCbNoC6CFq/Sb /9srmZ+dWKvw1lu9P3ozkQSL8ir94x91ScTzx1agC74ZIFqSdKhVsaHpi7A6wspANhfK loehF2qVHhJReehSR+kZizZGh5dqBBk6b6o9E365aQByXid7bXoW4YlLPlP5PSx6N1lp qpTQ== 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:mime-version:content-transfer-encoding; bh=PbUHvCGtslm4115xEnWZtXPRTamspE8lNJkHz8/fTlI=; b=oNN+9om3KSOoxhpNHP38HhdrdcnCMjsGOaEoTT3a8zEZNLg2bmuCXLd0ZWij6po5dz tIT7HZ03tI/0O+Dcnb+zpCL2N+nPOVrFwfmqUbJpUS7lSMVOw+2xaEKDVVDeKcO6Bdm3 4EEQFH0dGHiwgYhcn17FPJgkLMrjceQc4lv/sjUtVfSI+z1SvAM2qezc3hGR/WAFgwDD WK6hw8bo9LOpX+3qakwdKOB/PMN0dir3MDuQ/9KcWmhiCr+e9h7tywcLfCEyUSKNz6et R+28j5QTgkg5y1GGE5CHcQitjfaqpjk0bI8+5pIre6O9hhW7SpCGD3p5RSNK/NcTU/sI OLuA== X-Gm-Message-State: AOAM5312qZjvZ1k/RBr7K7SF+Cox8r5VPlQUuTpO9duH8nCmJ3AiwsED zk6kGO1av5yOW1sIcM9mNBU5F7jnRvk= X-Google-Smtp-Source: ABdhPJyr18YiGFUM1W627iIUONhqwNCDyGhVBF5hW/jl20HN+jUXMAHx8xaCRuuWPmuls9cT4P3jTw== X-Received: by 2002:a63:778c:: with SMTP id s134mr26707283pgc.273.1593117140767; Thu, 25 Jun 2020 13:32:20 -0700 (PDT) Received: from hermes.corp.microsoft.com (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id i12sm23963007pfk.180.2020.06.25.13.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 13:32:19 -0700 (PDT) From: Stephen Hemminger To: "Medvedkin, Vladimir" Cc: dev@dpdk.org, Stephen Hemminger Date: Thu, 25 Jun 2020 13:32:08 -0700 Message-Id: <20200625203208.19315-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200625203208.19315-1-stephen@networkplumber.org> References: <20200625203208.19315-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 3/3] rib: add C++ include guard 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" All include files should be safe from C++ Fixes: 5a5793a5ffa2 ("rib: add RIB library") Fixes: f7e861e21c46 ("rib: support IPv6") Signed-off-by: Stephen Hemminger --- lib/librte_rib/rte_rib.h | 8 ++++++++ lib/librte_rib/rte_rib6.h | 10 +++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/librte_rib/rte_rib.h b/lib/librte_rib/rte_rib.h index a7daa9d8a76e..e9ffefce6edd 100644 --- a/lib/librte_rib/rte_rib.h +++ b/lib/librte_rib/rte_rib.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /** * rte_rib_get_nxt() flags */ @@ -275,4 +279,8 @@ __rte_experimental void rte_rib_free(struct rte_rib *rib); +#ifdef __cplusplus +} +#endif + #endif /* _RTE_RIB_H_ */ diff --git a/lib/librte_rib/rte_rib6.h b/lib/librte_rib/rte_rib6.h index e6b4b7fff98c..68eaa8aa4812 100644 --- a/lib/librte_rib/rte_rib6.h +++ b/lib/librte_rib/rte_rib6.h @@ -14,6 +14,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + #define RTE_RIB6_IPV6_ADDR_SIZE 16 /** @@ -332,4 +336,8 @@ __rte_experimental void rte_rib6_free(struct rte_rib6 *rib); -#endif /* _RTE_RIB_H_ */ +#ifdef __cplusplus +} +#endif + +#endif /* _RTE_RIB6_H_ */ -- 2.26.2