From patchwork Mon Oct 23 10:00:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 116668 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4453717qgn; Mon, 23 Oct 2017 03:01:32 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SHBeSsDqIx3Z6tc037OtVv/FNJJ9TXOBfJzP2hlHXtdRfWDYKhYEabcQ8c7y608oxr6mg5 X-Received: by 10.36.77.131 with SMTP id l125mr8071971itb.7.1508752892638; Mon, 23 Oct 2017 03:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508752892; cv=none; d=google.com; s=arc-20160816; b=VhzdEq0sKP0Rt/2R52TPV8tGDTe8mKrS5g1Rvloa4dFd7XEfTWbpNfFI04n5DufApu q6tu+IQ7qOaXsA6KYaoMqxFf69E9nsqnE6/QeAYEXXwSmg4VpLPUoQPpt0frKAet3C/C n7ghYjsnwxk2N0KTd2hYpGo0wS38YzuOiQksKEahlzscZ5Tc7+NmlNntybZy7ad3+sQu GIwTlp5TYS68gAevjz3nQwkUamaT3SdDCokPuN+kzmhz9TOnhOX9Hs6rMhZ+auYmNH39 9z6QP/PEEvLMLFsPfyMNep/iSPhlAxVQBq/Ba8vKWSezw82u21uW9TeQ4rZoRVNZ5Y3o p0CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=SBosPWLRxDSBU/y9LSJ6P869f21ZDPGKPAyAomwv5zU=; b=SEfKLMbGjEg1OSsdJqOTAWFST1HHJabimDr7NAMkMSWiBZ/v8ZDvMEF3Abz8oraOhd yzz2aW1RB3r+9gi+Qm0GwChbfA1wDr50+1hUvFNeFavgQolufhmO6klqdYesco67UzmQ hsi9k0u7mspgPUh2Ktb3cGextVixIYGhrOqRulfY/0xMJaWY7KKRcXjT8VWGfJ/J+rIH nJEt2QMVeeyAhnPXugZChc/ualjb6ikvdKkmhhaGJSpGb+o7zsrf0mdcZ//4wSU5ooLi RfCac/r4y/OwBwYxKlFiADUb1Z6MrC+0oeYn0GIoacg/nBqY93X/s9UARYatFg4B6laF ZLNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id 65si3550403itc.73.2017.10.23.03.01.31; Mon, 23 Oct 2017 03:01:32 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id EA6F0619C5; Mon, 23 Oct 2017 10:01:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 366556162C; Mon, 23 Oct 2017 10:00:33 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id F02F761055; Mon, 23 Oct 2017 10:00:28 +0000 (UTC) Received: from forward106j.mail.yandex.net (forward106j.mail.yandex.net [5.45.198.249]) by lists.linaro.org (Postfix) with ESMTPS id 7CECC60747 for ; Mon, 23 Oct 2017 10:00:27 +0000 (UTC) Received: from mxback7g.mail.yandex.net (mxback7g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:168]) by forward106j.mail.yandex.net (Yandex) with ESMTP id D140E180359F for ; Mon, 23 Oct 2017 13:00:25 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback7g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id DIUPRNoISv-0JkSA43w; Mon, 23 Oct 2017 13:00:19 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id v2Z88N0WfZ-0J8G9aWZ; Mon, 23 Oct 2017 13:00:19 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Mon, 23 Oct 2017 13:00:05 +0300 Message-Id: <1508752805-11889-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508752805-11889-1-git-send-email-odpbot@yandex.ru> References: <1508752805-11889-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 251 Subject: [lng-odp] [PATCH 2.0 v1 1/1] linux-gen: modular-farmework: make modular framework symbols visible X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Bogdan Pricope Make modular framework/subsystems symbols visible Signed-off-by: Bogdan Pricope --- /** Email created from pull request 251 (bogdanPricope:2_0_symbols_visibility_pr) ** https://github.com/Linaro/odp/pull/251 ** Patch: https://github.com/Linaro/odp/pull/251.patch ** Base sha: 7bab5c22f99bb4847bd941fea1f5ed59a1412899 ** Merge commit sha: 7ddf90257c616d2cc794de570b458c58b4a0a334 **/ frameworks/modular/odp_module.h | 10 ++++++++++ platform/linux-generic/include/odp_buffer_subsystem.h | 2 ++ platform/linux-generic/include/odp_pktio_ops_subsystem.h | 10 ++++++++++ platform/linux-generic/include/odp_pool_subsystem.h | 2 ++ platform/linux-generic/include/odp_queue_subsystem.h | 2 ++ platform/linux-generic/include/odp_schedule_subsystem.h | 10 ++++++++++ 6 files changed, 36 insertions(+) diff --git a/frameworks/modular/odp_module.h b/frameworks/modular/odp_module.h index 59f67c8d4..b20501eb2 100644 --- a/frameworks/modular/odp_module.h +++ b/frameworks/modular/odp_module.h @@ -38,6 +38,11 @@ #ifndef ODP_MODULE_H_ #define ODP_MODULE_H_ +#include + +#ifdef __cplusplus +extern "C" { +#endif #include #include @@ -293,4 +298,9 @@ int __subsystem_register_module( __subsystem_set_active(&__subsystem(name), base); \ }) +#ifdef __cplusplus +} +#endif + +#include #endif diff --git a/platform/linux-generic/include/odp_buffer_subsystem.h b/platform/linux-generic/include/odp_buffer_subsystem.h index 6b69c06ff..3c791d207 100644 --- a/platform/linux-generic/include/odp_buffer_subsystem.h +++ b/platform/linux-generic/include/odp_buffer_subsystem.h @@ -8,6 +8,7 @@ #ifndef ODP_BUFFER_SUBSYSTEM_H_ #define ODP_BUFFER_SUBSYSTEM_H_ +#include #ifdef __cplusplus extern "C" { @@ -58,5 +59,6 @@ typedef ODP_MODULE_CLASS(buffer) { } #endif +#include #endif diff --git a/platform/linux-generic/include/odp_pktio_ops_subsystem.h b/platform/linux-generic/include/odp_pktio_ops_subsystem.h index 34bc5a24e..cb107fed2 100644 --- a/platform/linux-generic/include/odp_pktio_ops_subsystem.h +++ b/platform/linux-generic/include/odp_pktio_ops_subsystem.h @@ -8,6 +8,11 @@ #ifndef ODP_PKTIO_OPS_SUBSYSTEM_H_ #define ODP_PKTIO_OPS_SUBSYSTEM_H_ +#include + +#ifdef __cplusplus +extern "C" { +#endif #include #include @@ -87,4 +92,9 @@ typedef ODP_MODULE_CLASS(pktio_ops) { #define odp_ops_data(_p, _mod) \ ((pktio_ops_ ## _mod ## _data_t *)(uintptr_t)_p->s.ops_data) +#ifdef __cplusplus +} +#endif + +#include #endif diff --git a/platform/linux-generic/include/odp_pool_subsystem.h b/platform/linux-generic/include/odp_pool_subsystem.h index 45537a862..0f34ad143 100644 --- a/platform/linux-generic/include/odp_pool_subsystem.h +++ b/platform/linux-generic/include/odp_pool_subsystem.h @@ -8,6 +8,7 @@ #ifndef ODP_POOL_SUBSYSTEM_H_ #define ODP_POOL_SUBSYSTEM_H_ +#include #ifdef __cplusplus extern "C" { @@ -47,4 +48,5 @@ typedef ODP_MODULE_CLASS(pool) { } #endif +#include #endif diff --git a/platform/linux-generic/include/odp_queue_subsystem.h b/platform/linux-generic/include/odp_queue_subsystem.h index 601a254ea..57fa68fdb 100644 --- a/platform/linux-generic/include/odp_queue_subsystem.h +++ b/platform/linux-generic/include/odp_queue_subsystem.h @@ -8,6 +8,7 @@ #ifndef ODP_QUEUE_SUBSYSTEM_H #define ODP_QUEUE_SUBSYSTEM_H +#include #ifdef __cplusplus extern "C" { @@ -74,4 +75,5 @@ typedef ODP_MODULE_CLASS(queue) { } #endif +#include #endif diff --git a/platform/linux-generic/include/odp_schedule_subsystem.h b/platform/linux-generic/include/odp_schedule_subsystem.h index 4b2f29582..7d9247788 100644 --- a/platform/linux-generic/include/odp_schedule_subsystem.h +++ b/platform/linux-generic/include/odp_schedule_subsystem.h @@ -8,6 +8,11 @@ #ifndef ODP_SCHEDULE_SUBSYSTEM_H_ #define ODP_SCHEDULE_SUBSYSTEM_H_ +#include + +#ifdef __cplusplus +extern "C" { +#endif /* API header files */ #include @@ -77,4 +82,9 @@ typedef ODP_MODULE_CLASS(schedule) { odp_api_proto(schedule, schedule_resume) schedule_resume; } odp_schedule_module_t; +#ifdef __cplusplus +} +#endif + +#include #endif /* ODP_SCHEDULE_SUBSYSTEM_H_ */