From patchwork Fri Oct 27 12:50:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Eremin-Solenikov X-Patchwork-Id: 117348 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp773595qgn; Fri, 27 Oct 2017 06:28:39 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Qn/JeUwJMbjRuBZKiJcN0OcOtZ7+XgDjzSeXY6dWNMyaG43DuhoVkXjMFn8C6PkM4OWxon X-Received: by 10.107.143.20 with SMTP id r20mr596537iod.205.1509110919292; Fri, 27 Oct 2017 06:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509110919; cv=none; d=google.com; s=arc-20160816; b=KbPF8nk7VvY7tHvjOKtFgA1flRvOD1HBnUG0yJzUOr8llQtXGQ4flMyq8WxOeO/oor 1Jtp2zPN7+F/qi6cIrAxG2rv1HMCKv6PSLmmtu9QOg0C2jHTdpT31T7ZeeryVY+TMAID ABTwyxqxUP2gQiTMx644RRuApG2NHJv4/JtgJ2hveifjsjmKpD4ZQeore+It6T9OOqpp JyR2R/l6rR1kO4hdC+VMgR3EPz1keoCHtoSBr9L+irXCU5bH3K3uSRLfEuLX3jEqhm81 lw1b1CHTEvJQH87rKvQaWBGTK6tg8YSN0miA6wAq3MihRzloV7CSSz4qjbQ+rbtDfD9f VirQ== 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:references:in-reply-to :message-id:date:to:from:delivered-to:arc-authentication-results; bh=Bcwx75+M3+lsP1dr7t94AdzR1iq4F1UAHx4E7xvO1fc=; b=pVWoF9KTADVAyc1wh4cHpbsN/R6iQMXXBBguAiXFLNnJ2o3z0DFnIiW58TTHyKP6OK AGQObQHoLLBnFXkR/UARmOzb53dl6xCmXm69DJH5rsf6nATajgZVlQW54ZWCjWw23hTK 4zqtAWi8DlJBVpZO5Vsf1m8dWoHXpYdIcdQmk/phtnpkBcc8Z3mM1/uQuKbwr/GF0sU/ 5rRSKn+5KRwwjbqN7+i3V+XthM+GzsNl05dB/xq8v6AIBZeRPNOeVaPkZpIBO8hgOSkm Hcme3wA7HpYWdlWcVb8RFrM4dLZc17BnKS9255TSsHF9YhTepfQuqt2VDcPQvEQ5mlcw F7fw== 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 q126si1289181itb.149.2017.10.27.06.28.39; Fri, 27 Oct 2017 06:28:39 -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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D0DF962989; Fri, 27 Oct 2017 13:28:38 +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.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, 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 3E477629B6; Fri, 27 Oct 2017 12:54:47 +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 72C87629A4; Fri, 27 Oct 2017 12:54:18 +0000 (UTC) Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) by lists.linaro.org (Postfix) with ESMTPS id 65D0762965 for ; Fri, 27 Oct 2017 12:50:50 +0000 (UTC) Received: by mail-lf0-f67.google.com with SMTP id a69so7307661lfe.5 for ; Fri, 27 Oct 2017 05:50:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=Bcwx75+M3+lsP1dr7t94AdzR1iq4F1UAHx4E7xvO1fc=; b=D6VLQnGJ0BHme/ofze7/Q2NNJ1wHmClZbS6JdGbIw/KeBGM0mDIX5EVcWIK/1rAHql 8UO7qMW9Uqj+fy+OzJHuK9eFqsUAxOPlMX5cibQMpO5Q7ln9Z1rVvJoVk39/QJYKkNVu SAN0XAt6BOE1Vm/tIoPJclumXeCo0smS0LpxqKGqBcxalt5JSVCX9rDrNn9rzSLXQlZn OVD/1FBJARXL8TlSFtxXgsuzDo2x1soKk4OI1xpZ7Wnfru6FyWrsl+a5sL5y4Xby1JFz 7I+Z2mkvzFXvCvBPEK9uDqYqbrpOdyxW4FSMB+u4IigqEbhf+VPtu/Ai29Vzp6ecAq8u FSgg== X-Gm-Message-State: AMCzsaUpDjytpGAf3WYXgvr6Z+mnGOQ5zePT/2jByqhdeAUkh2L0DuRr jnwEc0GaYODBAibOfG9KChVYPnh4++ba1w== X-Received: by 10.46.91.138 with SMTP id m10mr170247lje.95.1509108647871; Fri, 27 Oct 2017 05:50:47 -0700 (PDT) Received: from rhovanion.lumag.spb.ru ([94.25.228.222]) by smtp.gmail.com with ESMTPSA id l194sm1584690lfl.11.2017.10.27.05.50.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Oct 2017 05:50:47 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Fri, 27 Oct 2017 15:50:07 +0300 Message-Id: <20171027125014.27313-24-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171027125014.27313-1-dmitry.ereminsolenikov@linaro.org> References: <20171027125014.27313-1-dmitry.ereminsolenikov@linaro.org> Subject: [lng-odp] [PATCH v10 23/30] linux-gen, include: move more headers from platform to generic 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" Move more generic headers from platform include dir to common include dir. Signed-off-by: Dmitry Eremin-Solenikov --- include/Makefile.am | 10 ++++++++++ {platform/linux-generic/include => include}/odp/api/chksum.h | 12 ++---------- .../linux-generic/include => include}/odp/api/compiler.h | 12 ++---------- .../linux-generic/include => include}/odp/api/deprecated.h | 4 ++-- {platform/linux-generic/include => include}/odp/api/errno.h | 5 ++--- .../linux-generic/include => include}/odp/api/feature.h | 12 ++---------- {platform/linux-generic/include => include}/odp/api/hash.h | 12 ++---------- {platform/linux-generic/include => include}/odp/api/hints.h | 12 ++---------- {platform/linux-generic/include => include}/odp/api/random.h | 12 ++---------- .../linux-generic/include => include}/odp/api/support.h | 12 ++---------- .../linux-generic/include => include}/odp/api/system_info.h | 5 ++--- platform/linux-generic/Makefile.am | 12 +----------- 12 files changed, 31 insertions(+), 89 deletions(-) rename {platform/linux-generic/include => include}/odp/api/chksum.h (72%) rename {platform/linux-generic/include => include}/odp/api/compiler.h (69%) rename {platform/linux-generic/include => include}/odp/api/deprecated.h (82%) rename {platform/linux-generic/include => include}/odp/api/errno.h (83%) rename {platform/linux-generic/include => include}/odp/api/feature.h (71%) rename {platform/linux-generic/include => include}/odp/api/hash.h (72%) rename {platform/linux-generic/include => include}/odp/api/hints.h (70%) rename {platform/linux-generic/include => include}/odp/api/random.h (70%) rename {platform/linux-generic/include => include}/odp/api/support.h (73%) rename {platform/linux-generic/include => include}/odp/api/system_info.h (82%) -- 2.14.2 diff --git a/include/Makefile.am b/include/Makefile.am index 617aa4a6e67a..addf4bc92261 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -9,12 +9,20 @@ odpapiinclude_HEADERS = \ odp/api/barrier.h \ odp/api/buffer.h \ odp/api/byteorder.h \ + odp/api/chksum.h \ + odp/api/compiler.h \ odp/api/cpumask.h \ + odp/api/deprecated.h \ + odp/api/errno.h \ odp/api/event.h \ + odp/api/feature.h \ + odp/api/hash.h \ + odp/api/hints.h \ odp/api/init.h \ odp/api/ipsec.h \ odp/api/pool.h \ odp/api/queue.h \ + odp/api/random.h \ odp/api/rwlock.h \ odp/api/rwlock_recursive.h \ odp/api/schedule.h \ @@ -24,7 +32,9 @@ odpapiinclude_HEADERS = \ odp/api/spinlock_recursive.h \ odp/api/std_clib.h \ odp/api/std_types.h \ + odp/api/support.h \ odp/api/sync.h \ + odp/api/system_info.h \ odp/api/thread.h \ odp/api/thrmask.h \ odp/api/ticketlock.h \ diff --git a/platform/linux-generic/include/odp/api/chksum.h b/include/odp/api/chksum.h similarity index 72% rename from platform/linux-generic/include/odp/api/chksum.h rename to include/odp/api/chksum.h index 18dcb6d11cb9..6dd1554ce48d 100644 --- a/platform/linux-generic/include/odp/api/chksum.h +++ b/include/odp/api/chksum.h @@ -10,21 +10,13 @@ * ODP checksum functions */ -#ifndef ODP_PLAT_CHKSUM_H_ -#define ODP_PLAT_CHKSUM_H_ +#ifndef ODP_API_CHKSUM_H_ +#define ODP_API_CHKSUM_H_ #ifdef __cplusplus extern "C" { #endif -/** @ingroup odp_chksum - * @{ - */ - -/** - * @} - */ - #include #ifdef __cplusplus diff --git a/platform/linux-generic/include/odp/api/compiler.h b/include/odp/api/compiler.h similarity index 69% rename from platform/linux-generic/include/odp/api/compiler.h rename to include/odp/api/compiler.h index 5249d5d6264b..04e815bb0fa5 100644 --- a/platform/linux-generic/include/odp/api/compiler.h +++ b/include/odp/api/compiler.h @@ -10,21 +10,13 @@ * Compiler related */ -#ifndef ODP_PLAT_COMPILER_H_ -#define ODP_PLAT_COMPILER_H_ +#ifndef ODP_API_COMPILER_H_ +#define ODP_API_COMPILER_H_ #ifdef __cplusplus extern "C" { #endif -/** @ingroup odp_compiler_optim - * @{ - */ - -/** - * @} - */ - #include #ifdef __cplusplus diff --git a/platform/linux-generic/include/odp/api/deprecated.h b/include/odp/api/deprecated.h similarity index 82% rename from platform/linux-generic/include/odp/api/deprecated.h rename to include/odp/api/deprecated.h index 82797ebc4505..881f23d1975f 100644 --- a/platform/linux-generic/include/odp/api/deprecated.h +++ b/include/odp/api/deprecated.h @@ -10,8 +10,8 @@ * Control deprecated API definitions */ -#ifndef ODP_PLAT_DEPRECATED_H_ -#define ODP_PLAT_DEPRECATED_H_ +#ifndef ODP_API_DEPRECATED_H_ +#define ODP_API_DEPRECATED_H_ #ifdef __cplusplus extern "C" { diff --git a/platform/linux-generic/include/odp/api/errno.h b/include/odp/api/errno.h similarity index 83% rename from platform/linux-generic/include/odp/api/errno.h rename to include/odp/api/errno.h index f70d84df0112..420d5d078339 100644 --- a/platform/linux-generic/include/odp/api/errno.h +++ b/include/odp/api/errno.h @@ -10,14 +10,13 @@ * ODP errno API */ -#ifndef ODP_PLAT_ERRNO_H_ -#define ODP_PLAT_ERRNO_H_ +#ifndef ODP_API_ERRNO_H_ +#define ODP_API_ERRNO_H_ #ifdef __cplusplus extern "C" { #endif - #include #ifdef __cplusplus diff --git a/platform/linux-generic/include/odp/api/feature.h b/include/odp/api/feature.h similarity index 71% rename from platform/linux-generic/include/odp/api/feature.h rename to include/odp/api/feature.h index 55a86a831084..6bbde3c3831a 100644 --- a/platform/linux-generic/include/odp/api/feature.h +++ b/include/odp/api/feature.h @@ -10,21 +10,13 @@ * ODP features. */ -#ifndef ODP_PLAT_FEATURE_H_ -#define ODP_PLAT_FEATURE_H_ +#ifndef ODP_API_FEATURE_H_ +#define ODP_API_FEATURE_H_ #ifdef __cplusplus extern "C" { #endif -/** @ingroup odp_feature - * @{ - */ - -/** - * @} - */ - #include #ifdef __cplusplus diff --git a/platform/linux-generic/include/odp/api/hash.h b/include/odp/api/hash.h similarity index 72% rename from platform/linux-generic/include/odp/api/hash.h rename to include/odp/api/hash.h index 332029ed0a24..8e1699ccce67 100644 --- a/platform/linux-generic/include/odp/api/hash.h +++ b/include/odp/api/hash.h @@ -10,21 +10,13 @@ * ODP Hash function */ -#ifndef ODP_PLAT_HASH_H_ -#define ODP_PLAT_HASH_H_ +#ifndef ODP_API_HASH_H_ +#define ODP_API_HASH_H_ #ifdef __cplusplus extern "C" { #endif -/** @ingroup odp_hash - * @{ - */ - -/** - * @} - */ - #include #ifdef __cplusplus diff --git a/platform/linux-generic/include/odp/api/hints.h b/include/odp/api/hints.h similarity index 70% rename from platform/linux-generic/include/odp/api/hints.h rename to include/odp/api/hints.h index 3ba1ba95ed4f..c4d134b74818 100644 --- a/platform/linux-generic/include/odp/api/hints.h +++ b/include/odp/api/hints.h @@ -10,21 +10,13 @@ * ODP compiler hints */ -#ifndef ODP_PLAT_HINTS_H_ -#define ODP_PLAT_HINTS_H_ +#ifndef ODP_API_HINTS_H_ +#define ODP_API_HINTS_H_ #ifdef __cplusplus extern "C" { #endif -/** @ingroup odp_compiler_optim - * @{ - */ - -/** - * @} - */ - #include #ifdef __cplusplus diff --git a/platform/linux-generic/include/odp/api/random.h b/include/odp/api/random.h similarity index 70% rename from platform/linux-generic/include/odp/api/random.h rename to include/odp/api/random.h index c8529b3f9b9a..4ce973840cd7 100644 --- a/platform/linux-generic/include/odp/api/random.h +++ b/include/odp/api/random.h @@ -10,21 +10,13 @@ * ODP random number API */ -#ifndef ODP_PLAT_RANDOM_H_ -#define ODP_PLAT_RANDOM_H_ +#ifndef ODP_API_RANDOM_H_ +#define ODP_API_RANDOM_H_ #ifdef __cplusplus extern "C" { #endif -/** @ingroup odp_random ODP RANDOM - * @{ - */ - -/** - * @} - */ - #include #ifdef __cplusplus diff --git a/platform/linux-generic/include/odp/api/support.h b/include/odp/api/support.h similarity index 73% rename from platform/linux-generic/include/odp/api/support.h rename to include/odp/api/support.h index dd6abab23a29..6c1759d4b8f6 100644 --- a/platform/linux-generic/include/odp/api/support.h +++ b/include/odp/api/support.h @@ -10,21 +10,13 @@ * ODP support API - platform specific header */ -#ifndef ODP_PLAT_SUPPORT_H_ -#define ODP_PLAT_SUPPORT_H_ +#ifndef ODP_API_SUPPORT_H_ +#define ODP_API_SUPPORT_H_ #ifdef __cplusplus extern "C" { #endif -/** @ingroup odp_support - * @{ - */ - -/** - * @} - */ - #include #ifdef __cplusplus diff --git a/platform/linux-generic/include/odp/api/system_info.h b/include/odp/api/system_info.h similarity index 82% rename from platform/linux-generic/include/odp/api/system_info.h rename to include/odp/api/system_info.h index 36ddc814b4c0..7b95a876affa 100644 --- a/platform/linux-generic/include/odp/api/system_info.h +++ b/include/odp/api/system_info.h @@ -10,8 +10,8 @@ * ODP system information */ -#ifndef ODP_PLAT_SYSTEM_INFO_H_ -#define ODP_PLAT_SYSTEM_INFO_H_ +#ifndef ODP_API_SYSTEM_INFO_H_ +#define ODP_API_SYSTEM_INFO_H_ #ifdef __cplusplus extern "C" { @@ -19,7 +19,6 @@ extern "C" { #include - #include #ifdef __cplusplus diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 3aee7ce6340e..14b449ea42c1 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -20,24 +20,14 @@ odpinclude_HEADERS = \ odpapiincludedir= $(includedir)/odp/api odpapiinclude_HEADERS = \ include/odp/api/align.h \ - include/odp/api/chksum.h \ include/odp/api/classification.h \ - include/odp/api/compiler.h \ include/odp/api/cpu.h \ include/odp/api/crypto.h \ include/odp/api/debug.h \ - include/odp/api/deprecated.h \ - include/odp/api/errno.h \ - include/odp/api/feature.h \ - include/odp/api/hash.h \ - include/odp/api/hints.h \ include/odp/api/packet_flags.h \ include/odp/api/packet.h \ include/odp/api/packet_io.h \ - include/odp/api/packet_io_stats.h \ - include/odp/api/random.h \ - include/odp/api/support.h \ - include/odp/api/system_info.h + include/odp/api/packet_io_stats.h odpapiplatincludedir= $(includedir)/odp/api/plat odpapiplatinclude_HEADERS = \