@@ -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\
new file mode 100644
@@ -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 <odp/helper/chksum.h>
+#include <odp/helper/eth.h>
+#include <odp/helper/icmp.h>
+#include <odp/helper/ip.h>
+#include <odp/helper/ipsec.h>
+#include <odp/helper/strong_types.h>
+#include <odp/helper/tcp.h>
+#include <odp/helper/table.h>
+#include <odp/helper/threads.h>
+#include <odp/helper/udp.h>
+
+#ifdef __cplusplus
+}
+#endif
+#endif
@@ -6,9 +6,7 @@
#include "odph_debug.h"
#include <odp_api.h>
-#include <odp/helper/eth.h>
-#include <odp/helper/ip.h>
-#include <odp/helper/udp.h>
+#include <odp/helper/odph_api.h>
struct udata_struct {
uint64_t u64;
@@ -15,7 +15,7 @@
#include <odph_debug.h>
#include <odp_api.h>
-#include <odp/helper/threads.h>
+#include <odp/helper/odph_api.h>
#define NUMBER_WORKERS 16
@@ -7,8 +7,7 @@
#include <odph_debug.h>
#include <odp_api.h>
-#include <odp/helper/eth.h>
-#include <odp/helper/ip.h>
+#include <odp/helper/odph_api.h>
#include <stdio.h>
#include <string.h>
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 <mike.holmes@linaro.org> --- 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