From patchwork Thu Jul 9 08:35:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Levend Sayar X-Patchwork-Id: 73633 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 D8FF3A0528; Thu, 9 Jul 2020 12:32:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1DD6C1D9FD; Thu, 9 Jul 2020 12:32:53 +0200 (CEST) Received: from mail-ej1-f68.google.com (mail-ej1-f68.google.com [209.85.218.68]) by dpdk.org (Postfix) with ESMTP id EF9A41DE6D for ; Thu, 9 Jul 2020 10:35:29 +0200 (CEST) Received: by mail-ej1-f68.google.com with SMTP id l12so1384197ejn.10 for ; Thu, 09 Jul 2020 01:35:29 -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=pr9t+DAso0CRmOlB5rSpsSUoFTGpaG9nCt1VUiZxIRA=; b=AIZOKU+ABMzx9BgKSOe2GmGj+WaXnEyfPm4U9NjBzNQ1ziLATiSPTk29FVea9H9M+V GgOEI0yubSpucmeQy0U7JbuTmz9L9jIwCWOZlpMARFnO9fApHZjCk5mezDoAN1fBlThP 2NaksjnG0fE3T937vO78ILzulfp2+w/IgNucTcaq9WMy4Cbfdz5VXMBrgFmxvl797tVZ JBs1K3Ib4lKu1V5BB0YSDQ+efAUPZHbpP6ZOZekCf/DrrBuvNXuYuSdzJuuju8Nc0c5l Ltk+ITlR3sIYHwbsoSEgzlUkKD7J8QDkhpJTOEZM/I0huHYLOKdohgpZCNeDX6wxwcEN T9vw== 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=pr9t+DAso0CRmOlB5rSpsSUoFTGpaG9nCt1VUiZxIRA=; b=L/U1vG9VJbqwBpMZX8ff2fIa8sDFf6gL1uINTOhO47GJp2nNzJibA/aoHWVA1KX64E 3FUDm5vTN2+Y3Ce62MO+CDdZXWK57P/N/v/86yfP6At8Zvg++qVjAgQwNMt5K5koFU9z kV9Dvkq+9IMs//tmVrF2HJiQbNhmkCD2wroDw2uO+iVsXkFjAeXasl+epQFVgHCIGeO4 roFS8MI6YVaM8MekSdSEckFdOjF8lfYfAyECWQ2e07OG+lmMH2JQN/GgZQ5OklmRop9b 0WrS5guoSdjSevr7MJEu6mx/C3Vck/YOfjp61RkgchFn+jf7sFBVali8b01ADXzE0fY3 0ByA== X-Gm-Message-State: AOAM530RtN4dD/KYZyxTZ/32Oo6S9RSlGH8nGk4NrXuNl0X5pBqWUQfA ihbB9nN2fGDUmFZS8GHCbxw= X-Google-Smtp-Source: ABdhPJxf01SbaC5Bw3PmnkEYNFw7fPVxEqis57GtmZnXdIni+jhrjjryBC6ZMO4qZPC3yEEAWRWvoQ== X-Received: by 2002:a17:906:194b:: with SMTP id b11mr49410747eje.28.1594283729671; Thu, 09 Jul 2020 01:35:29 -0700 (PDT) Received: from localhost.localdomain ([78.187.120.228]) by smtp.gmail.com with ESMTPSA id p14sm1492285edr.23.2020.07.09.01.35.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2020 01:35:28 -0700 (PDT) From: levendsayar@gmail.com To: thomas@monjalon.net Cc: dev@dpdk.org, Levend Sayar , Harry van Haaren Date: Thu, 9 Jul 2020 11:35:23 +0300 Message-Id: <20200709083523.23920-1-levendsayar@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 09 Jul 2020 12:32:52 +0200 Subject: [dpdk-dev] [PATCH v2] 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 "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_ */