From patchwork Wed Feb 10 17:27:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 61680 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp2744950lbl; Wed, 10 Feb 2016 08:31:34 -0800 (PST) X-Received: by 10.55.72.87 with SMTP id v84mr50624834qka.9.1455121894502; Wed, 10 Feb 2016 08:31:34 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b69si4421394qga.24.2016.02.10.08.31.34; Wed, 10 Feb 2016 08:31:34 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 09EFD61A0A; Wed, 10 Feb 2016 16:31:34 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=i5s3yW9B; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 1090161CD3; Wed, 10 Feb 2016 16:28:57 +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 5E46D617D4; Wed, 10 Feb 2016 16:28:46 +0000 (UTC) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by lists.linaro.org (Postfix) with ESMTPS id E3B4161A0A for ; Wed, 10 Feb 2016 16:28:37 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id m1so15286142lfg.0 for ; Wed, 10 Feb 2016 08:28:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JnaqtP4V1A8iXOkZSm9QA0y6GkqyAael7QlR+Hfoo2w=; b=i5s3yW9BinyNiyXd0M/cnpy5yDkxkapqkXwKL48v2nhy69cwlqh+GFTEeqYx+xSv2f yRlprjhOn4sSwfuu0tIgGowAUbVC4Zx4eSTMlEPxNILckPbxBJt5CIclsU9nCtoTSdLV mgJqnXC/fRPat7h1iuBvOKTRLCUYXYRv6TFr8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JnaqtP4V1A8iXOkZSm9QA0y6GkqyAael7QlR+Hfoo2w=; b=lCek8dBHJhNtE1qwhfyIeHvz1uV8AN7yILc3ScWjEDj3AJ7rRsop3KRTchtDuBJnDg 8ptZmq559hDLiGJ039F96CIw2OEV57EjgasGkm/FG4VmnWx6I7sAMwmRJP0P/61d2ITO p9kmDmscOJQeeVr3FXqOTDnkkQpqY6ckkDCSQXYoRrRfCzY/TvXwUO1GyzJsNIhZdyO7 N+iRldhE1hqgoWtzeLUjYRYoaYADdRiqzglm1LUTqo407V7tI9usvPLx9jufALL9Ql4U Mgy7GhcZoW/TMQPzDnYrVY0g0tCRpF1SHywLYMeybNDCjPI/ZZ0s1A5VcY7kABVHdUgH 8qVg== X-Gm-Message-State: AG10YOQhE8Micl/yCt9W9m1hO1weQ3bNO9VCN/mhcPNS9Zcavm5KzjvlI4AuhyL6TrO/BWQXzQ4= X-Received: by 10.25.41.140 with SMTP id p134mr9751551lfp.15.1455121716781; Wed, 10 Feb 2016 08:28:36 -0800 (PST) Received: from erachmi-ericsson.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id a14sm607139lfe.7.2016.02.10.08.28.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Feb 2016 08:28:36 -0800 (PST) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, bill.fischofer@linaro.org, petri.savolainen@linaro.org Date: Wed, 10 Feb 2016 18:27:28 +0100 Message-Id: <1455125248-34077-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1455125248-34077-1-git-send-email-christophe.milard@linaro.org> References: <1455125248-34077-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [API-NEXT PATCHv4 4/4] api: odp.h to ease transition period 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" The former odp.h (now called odp_api.h) is recreated here and just includes odp_api.h. This is to ease the transition period for ODP applications, but this file (odp.h) is meant to be removed in the future. ODP applications should include odp_api.h, but those including odp.h will keep working during this transition period. Signed-off-by: Christophe Milard --- include/odp.h | 30 ++++++++++++++++++++++++++++++ platform/linux-generic/Makefile.am | 1 + 2 files changed, 31 insertions(+) create mode 100644 include/odp.h diff --git a/include/odp.h b/include/odp.h new file mode 100644 index 0000000..55ba3b2 --- /dev/null +++ b/include/odp.h @@ -0,0 +1,30 @@ +/* Copyright (c) 2016, Linaro Limited + * All rights reserved + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @file + * + * WARNING: THIS FILE IS DEPRECATED AND WILL BE REMOVED!!! + * ODP APPLICATIONS SHOULD NOW INCLUDE odp_api.h INSTEAD. + * + * This file is here to ease the transition period but will be removed. + * This change has been made to enable the creation of other ODP interfaces. + * + */ + +#ifndef ODP_H_ +#define ODP_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#ifdef __cplusplus +} +#endif +#endif diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index fb7f030..5e1a328 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -9,6 +9,7 @@ AM_CFLAGS += -I$(top_srcdir)/include AM_CFLAGS += -I$(top_srcdir)/helper/include include_HEADERS = \ + $(top_srcdir)/include/odp.h \ $(top_srcdir)/include/odp_api.h odpapiincludedir= $(includedir)/odp/api