From patchwork Tue Jul 7 16:15:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Levend Sayar X-Patchwork-Id: 73525 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 B85F5A0526; Wed, 8 Jul 2020 14:30:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 258571DDCC; Wed, 8 Jul 2020 14:29:57 +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 BD7791DA70 for ; Tue, 7 Jul 2020 18:16:02 +0200 (CEST) Received: by mail-ed1-f67.google.com with SMTP id d18so33328169edv.6 for ; Tue, 07 Jul 2020 09:16:02 -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=Gox4gx0eqGpG2wdIcOqtQENQSjBshybURr9pRs8rF+I=; b=r+Yt5ZZqH4fF+KqJOvw2UIuc/KE6wnJE3k9juHEyEWvn2FJPUq+68a1c7RVGv/ijFa sPEZoNd5TrIAzJ2OYCJW3vhH7/1DMeZnGiWYUnpOIUW9hbApDwKM5dueD4oK/E30u1Fu yKeyTshkGWLenWraCWQEl/m3cqCCQ11D78uMkxhRU1Uz3GlmgdNoFcy2GycfzZ9eVxEJ lSxzF/MorVTIjfpEQNGBI543NavBgfK9vQedA0auSwiVnS7ARkmKQuQ6xX44tH9gEA/W XCakG5TsMq2WjTwvoU7DZGQfyMJoMkRErNqrVw7aFCWlDYnEZfFxkE83RC0vgXgQWIGN AFwQ== 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=Gox4gx0eqGpG2wdIcOqtQENQSjBshybURr9pRs8rF+I=; b=goMYJJmFng2lMWDea+wCR0rr+qV0g5OEAqEpqdWfdk1IUqt3zgDrK5GUnzHckk2kmV +ogYXoMkM9fhe3KJWTtP5bXo4Idn83RbW7hhskR9io0QKpUB9YdMVjkEWFFPZWFcbYm1 8jwJDR+TAxM/dkNNJKG+XPUIwbQXRTBf8x82kls6WRaoPRTLei9vfbkx9j3TMAQU1U4K XuTwuv+OmdrMu03AW3gEN4rG/N1dGEgilb6AXfwPU7CJLrH4wPlXts7VERGHwPJUOiwD nqvlmWJKw5lFB5K/Kiajm0GCLHGHBbW70cxRU1XzJMttHqWvw7M0V6BuYXEalvVBsVZy gvuA== X-Gm-Message-State: AOAM531330NnjWrwr/N/M/J/wbXqnlXSrFNAc/23cU79IWfZh9ZAeGPJ JtK5F90Qm+AUQFdGNP3b1DQ= X-Google-Smtp-Source: ABdhPJwXh1eW4QqQmh1M5Ab+Z8BGFo2lFBj5j7rHHAEFNj73owWlNvw1eD473tOEzo9mKOai9FiqAg== X-Received: by 2002:a50:cd53:: with SMTP id d19mr63405274edj.300.1594138562468; Tue, 07 Jul 2020 09:16:02 -0700 (PDT) Received: from localhost.localdomain ([78.187.120.228]) by smtp.gmail.com with ESMTPSA id e16sm549131ejt.14.2020.07.07.09.16.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jul 2020 09:16:01 -0700 (PDT) From: levendsayar@gmail.com To: thomas@monjalon.net Cc: dev@dpdk.org, Levend Sayar , Harry van Haaren Date: Tue, 7 Jul 2020 19:15:58 +0300 Message-Id: <20200707161558.39334-1-levendsayar@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 08 Jul 2020 14:29:52 +0200 Subject: [dpdk-dev] [PATCH v2] build: Add C++ linkage support 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 "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_ */