From patchwork Tue Jul 7 12:25:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Levend Sayar X-Patchwork-Id: 73446 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6EBC6A00BE; Tue, 7 Jul 2020 17:14:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DB3C51DE71; Tue, 7 Jul 2020 17:14:05 +0200 (CEST) Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) by dpdk.org (Postfix) with ESMTP id 060D51D8E6 for ; Tue, 7 Jul 2020 14:25:31 +0200 (CEST) Received: by mail-ed1-f67.google.com with SMTP id e15so38184783edr.2 for ; Tue, 07 Jul 2020 05:25:31 -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:mime-version :content-transfer-encoding; bh=YEwXzOBEQPQkzyqFeM8thqjzgPh28EYeUgIqB1p4tQ4=; b=tzWkRCdo9wffRcLf8iNXYWxTjtqyNvC8hEGndV2F/JVwnajhc1ryNYBUEeehhVGk9i jtKPVqylflCqyW9DgBhsSPe/532TuaNLx+4+YUJTjSCc4hYJHpJ6i07bZXNoetvaVaKH Y+8oQ2E3EMJqIGWIpNCAZH+8OymwfVmG18iAcDx5cgL4TUQt6DcD81dlujIUqbWElXMB HWuxmBx7um0rdBTvGpJC7EwS5g6TmiqGzeVCg4n+d+NdynnIYbOm6XoDHkN8pb5J/Hw7 AwPvnavlZk//LwsvTX1jaSzXHvI+PEBP0Adj2Li83aRue/4uLWtNnibK1xBhATYPV9Sv ehFg== 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:mime-version :content-transfer-encoding; bh=YEwXzOBEQPQkzyqFeM8thqjzgPh28EYeUgIqB1p4tQ4=; b=gSc19VKZGrqf0a5XLhUYYbsviJn5y/rdxWDA0f1ltA+36b+d5OAAINpPxEn/qTljoY C8PMAF6V8ElJ0kRVDobby2wGF+tgntP7GRydbqqGh2xFD6D0shOpHxkHUA0jShZjjEF4 ekj/i9jKDKFyCyouJcoeAPbUBkEn3+7BGeSjqJRoYHis97jR3JNZ1I5EkdpnMA+QRKhB 9RQLXAgmclgtkOUXzyXkxCG7B9lBUWGdjFJhrMb/MZL5mXEE1TqRYLVx762V++21L8Es BrjchSB+3Vsy11H2JOWsiTJxpxCEovnjCPJdWMjla1GbPyp5UuwG+rk0QjHOduqL/8hb tfQg== X-Gm-Message-State: AOAM533Hw8Tta2tIvnW3gyzqb1XuV4kNE96YIORtICRru6+tMfKsFdpB xnB7Ry+y+78po9GCW6Winyk= X-Google-Smtp-Source: ABdhPJydeHvTzoQUOPiUgZDKG2hHktoMcgaRkrqloZv8cMrZZOjv3s1GeJmvCBcJPpZ0nA+KEWC0nw== X-Received: by 2002:aa7:c31a:: with SMTP id l26mr58618338edq.61.1594124730769; Tue, 07 Jul 2020 05:25:30 -0700 (PDT) Received: from localhost.localdomain ([78.187.120.228]) by smtp.gmail.com with ESMTPSA id m22sm325805ejb.47.2020.07.07.05.25.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jul 2020 05:25:29 -0700 (PDT) From: levendsayar@gmail.com To: thomas@monjalon.net Cc: dev@dpdk.org, Levend Sayar Date: Tue, 7 Jul 2020 15:25:16 +0300 Message-Id: <20200707122516.28630-1-levendsayar@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 07 Jul 2020 17:14:05 +0200 Subject: [dpdk-dev] [PATCH] build: C++ linkage support is added to rte_service_component.h file 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 Signed-off-by: Levend Sayar --- lib/librte_eal/include/rte_service_component.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/include/rte_service_component.h b/lib/librte_eal/include/rte_service_component.h index b75aba11b..c1eefae41 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); -#endif /* _SERVICE_PRIVATE_H_ */ +#ifdef __cplusplus +} +#endif + +#endif /* _RTE_SERVICE_PRIVATE_H_ */