From patchwork Mon Jan 23 19:46:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 92269 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1385657qgi; Mon, 23 Jan 2017 11:47:34 -0800 (PST) X-Received: by 10.200.36.81 with SMTP id d17mr24015272qtd.99.1485200854851; Mon, 23 Jan 2017 11:47:34 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t73si11503952qke.263.2017.01.23.11.47.34; Mon, 23 Jan 2017 11:47: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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 825E462D6D; Mon, 23 Jan 2017 19:47:34 +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, 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 6741762C5F; Mon, 23 Jan 2017 19:46:50 +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 E8A0662C37; Mon, 23 Jan 2017 19:46:44 +0000 (UTC) Received: from mail-yw0-f172.google.com (mail-yw0-f172.google.com [209.85.161.172]) by lists.linaro.org (Postfix) with ESMTPS id 36D6460F38 for ; Mon, 23 Jan 2017 19:46:15 +0000 (UTC) Received: by mail-yw0-f172.google.com with SMTP id u68so107658489ywg.0 for ; Mon, 23 Jan 2017 11:46:15 -0800 (PST) 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:in-reply-to :references; bh=W1KLtE7ioFiNfbljexQ+R0ara28I8K/81I8v8wEo8sM=; b=jm/NLFxC0KICs7+yJTTA3kuidV98Lk2ZqI58PmW06syFBDyqLv0s3NVEBv7yJnLejR rX3VZGEs+3ZcFhzB108dNVFDLIdOyDjsX9mCc/cUDFcBs1EYeL5xJiky2Q4lXc9COyG9 ZrJUNzA+jzuyX7Ta76Mj/gej44Mzljvf1+zQohHQFIH8iXjoO1tSRoBvexS8S6iwYaHO SOV0RKNwGebjNtmqcGdMrnPwLWvCb/14R3G41ac3d5ke5m1V5O45GMiRKhKbn+juf3PZ mCO3mJkdalVW3QuMAmyhRgueEqa8YSNY3GH99RqE4Ht+hotaLp05PNzOAARvH+4a5Je+ gZAA== X-Gm-Message-State: AIkVDXIUbN8KHNAZLxk/lnARm+mncXKpp/nY4ejecTXUO5P7GZ/ukuppzSkKJqpkqek4xNh0ZSc= X-Received: by 10.55.26.159 with SMTP id l31mr26995702qkh.164.1485200774446; Mon, 23 Jan 2017 11:46:14 -0800 (PST) Received: from localhost (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by smtp.gmail.com with ESMTPSA id 23sm13960695qtp.20.2017.01.23.11.46.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jan 2017 11:46:13 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Mon, 23 Jan 2017 14:46:05 -0500 Message-Id: <20170123194608.4552-2-mike.holmes@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170123194608.4552-1-mike.holmes@linaro.org> References: <20170123194608.4552-1-mike.holmes@linaro.org> Subject: [lng-odp] [PATCH 1/4] helper: add odph_api.h for existing exported headers 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" Rather than have all applications include a variable number of helper api files, consolidate them into one include odph_api.h Signed-off-by: Mike Holmes --- helper/Makefile.am | 1 + helper/include/odp/helper/odph_api.h | 35 +++++++++++++++++++++++++++++++++++ helper/test/chksum.c | 4 +--- helper/test/odpthreads.c | 2 +- helper/test/parse.c | 3 +-- 5 files changed, 39 insertions(+), 6 deletions(-) create mode 100644 helper/include/odp/helper/odph_api.h -- 2.9.3 diff --git a/helper/Makefile.am b/helper/Makefile.am index 9b2f18a..76cad1b 100644 --- a/helper/Makefile.am +++ b/helper/Makefile.am @@ -19,6 +19,7 @@ helperinclude_HEADERS = \ $(srcdir)/include/odp/helper/icmp.h\ $(srcdir)/include/odp/helper/ip.h\ $(srcdir)/include/odp/helper/ipsec.h\ + $(srcdir)/include/odp/helper/odph_api.h\ $(srcdir)/include/odp/helper/strong_types.h\ $(srcdir)/include/odp/helper/tcp.h\ $(srcdir)/include/odp/helper/table.h\ diff --git a/helper/include/odp/helper/odph_api.h b/helper/include/odp/helper/odph_api.h new file mode 100644 index 0000000..ae6e77b --- /dev/null +++ b/helper/include/odp/helper/odph_api.h @@ -0,0 +1,35 @@ +/* Copyright (c) 2017, Linaro Limited + * All rights reserved + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @file + * + * The OpenDataPlane helper API + * + */ + +#ifndef ODP_HELPER_H_ +#define ODP_HELPER_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef __cplusplus +} +#endif +#endif diff --git a/helper/test/chksum.c b/helper/test/chksum.c index 7c572ae..1beae47 100644 --- a/helper/test/chksum.c +++ b/helper/test/chksum.c @@ -6,9 +6,7 @@ #include "odph_debug.h" #include -#include -#include -#include +#include struct udata_struct { uint64_t u64; diff --git a/helper/test/odpthreads.c b/helper/test/odpthreads.c index 4bb3c3b..219e1b6 100644 --- a/helper/test/odpthreads.c +++ b/helper/test/odpthreads.c @@ -15,7 +15,7 @@ #include #include -#include +#include #define NUMBER_WORKERS 16 diff --git a/helper/test/parse.c b/helper/test/parse.c index 26dfc68..0429f2c 100644 --- a/helper/test/parse.c +++ b/helper/test/parse.c @@ -7,8 +7,7 @@ #include #include -#include -#include +#include #include #include