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 795C2A0528; Thu, 9 Jul 2020 14:32:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D4B6F1E886; Thu, 9 Jul 2020 14:32:23 +0200 (CEST) Received: from mail-ej1-f67.google.com (mail-ej1-f67.google.com [209.85.218.67]) by dpdk.org (Postfix) with ESMTP id B31671E877 for ; Thu, 9 Jul 2020 14:32:22 +0200 (CEST) Received: by mail-ej1-f67.google.com with SMTP id dr13so2090355ejc.3 for ; Thu, 09 Jul 2020 05:32:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pr9t+DAso0CRmOlB5rSpsSUoFTGpaG9nCt1VUiZxIRA=; b=qs1Ylm5tc0/tvQE7Dp4rtYUV1FSfIOXLXpudMPbgpvT4YGzLPky8+cDL2zBjd4yFJQ iKCDEIrhkNGrJmBe/kXLjZjUESjZc9A5enr77lHKWxB8t+kj68bdliXY99DOrVghKU2x rwauzQzTk95oScAhPa7qgx5iTJ5kYqiipsA0/YGkNoqyR9ijicYkRawXLJiYsZ+fbvkO wwM2aw3HfFb5ISeuLx7tA3Z7BJK7QJ4IgDmZiHcPu+Nm3Vpdc9Hnw40rSGgVkffq8I5u BjpxHafRwBWZVkVlqOn6rsAFMwlfe0QlClK7KOc7OD39NH8aGs8dl9A2IxrpA5m6oN1L PTjg== 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=pr9t+DAso0CRmOlB5rSpsSUoFTGpaG9nCt1VUiZxIRA=; b=dZ6V/oEmxWKZqNei+nXR2TctoxyF7JjFAranrlvf1i1eIKbrty/96KXmwK8eKJ7d0Y DwABvooSMrdvlSNTKfmjv6ejO36JIHOpjRN6rnUMzLoD8Y9IGWlHUaR2Yh1+n9cA7ZIj 3yST3vif1sEhL27AJUBFIPZIrXl3WCpPo0iz8qa9WOxK46QNLZU5kGk7vNP7k3Vwpzwq ZuWJPv3xRewS+MUfYwK6R9aI+NVfSoQnun/aFznU67E9Udimef5bEADmdwbgLSeSb3RC XfBtw3TpLfRhCtC69v5m/NBWahQadQjNYXACwadJjrZFrsK1Nu70T72Z7FrO927SmUkR e0RQ== X-Gm-Message-State: AOAM531+YWMa3AaWdo/eQWk+8/VRePADImg7KpdrnwkRRdWNsAI1DfmX O7UrmOYgz9AnieQ1eTUy1kg= X-Google-Smtp-Source: ABdhPJyMGiQeyWcn5AZc2r5SwlT5L/1UW+L0gwSglbWukfUGoqDXopoMICc2ceXUUTMF78MOfaQL7A== X-Received: by 2002:a17:906:5f98:: with SMTP id a24mr54628390eju.241.1594297942301; Thu, 09 Jul 2020 05:32:22 -0700 (PDT) Received: from localhost.localdomain ([78.187.120.228]) by smtp.gmail.com with ESMTPSA id lm22sm1708444ejb.109.2020.07.09.05.32.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2020 05:32:21 -0700 (PDT) From: levendsayar@gmail.com To: thomas@monjalon.net Cc: dev@dpdk.org, Levend Sayar , Harry van Haaren Date: Thu, 9 Jul 2020 15:32:16 +0300 Message-Id: <20200709123216.47707-1-levendsayar@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200707122516.28630-1-levendsayar@gmail.com> References: <20200707122516.28630-1-levendsayar@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3] service: support C++ linkage 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" From: Levend Sayar "extern C" define is added to rte_service_component.h file to be able to use in C++ context Signed-off-by: Levend Sayar Acked-by: Harry van Haaren --- lib/librte_eal/include/rte_service_component.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/librte_eal/include/rte_service_component.h b/lib/librte_eal/include/rte_service_component.h index b75aba11b..9e66ee7e2 100644 --- a/lib/librte_eal/include/rte_service_component.h +++ b/lib/librte_eal/include/rte_service_component.h @@ -9,6 +9,11 @@ * Include this file if you are writing a component that requires CPU cycles to * operate, and you wish to run the component using service cores */ + +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -130,4 +135,8 @@ int32_t rte_service_init(void); */ void rte_service_finalize(void); +#ifdef __cplusplus +} +#endif + #endif /* _SERVICE_PRIVATE_H_ */ -- 2.27.0