@@ -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 \
similarity index 72%
rename from platform/linux-generic/include/odp/api/chksum.h
rename to 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 <odp/api/spec/chksum.h>
#ifdef __cplusplus
similarity index 69%
rename from platform/linux-generic/include/odp/api/compiler.h
rename to 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 <odp/api/spec/compiler.h>
#ifdef __cplusplus
similarity index 82%
rename from platform/linux-generic/include/odp/api/deprecated.h
rename to 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" {
similarity index 83%
rename from platform/linux-generic/include/odp/api/errno.h
rename to 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 <odp/api/spec/errno.h>
#ifdef __cplusplus
similarity index 71%
rename from platform/linux-generic/include/odp/api/feature.h
rename to 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 <odp/api/spec/feature.h>
#ifdef __cplusplus
similarity index 72%
rename from platform/linux-generic/include/odp/api/hash.h
rename to 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 <odp/api/spec/hash.h>
#ifdef __cplusplus
similarity index 70%
rename from platform/linux-generic/include/odp/api/hints.h
rename to 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 <odp/api/spec/hints.h>
#ifdef __cplusplus
similarity index 70%
rename from platform/linux-generic/include/odp/api/random.h
rename to 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 <odp/api/spec/random.h>
#ifdef __cplusplus
similarity index 73%
rename from platform/linux-generic/include/odp/api/support.h
rename to 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 <odp/api/spec/support.h>
#ifdef __cplusplus
similarity index 82%
rename from platform/linux-generic/include/odp/api/system_info.h
rename to 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 <odp/api/std_types.h>
-
#include <odp/api/spec/system_info.h>
#ifdef __cplusplus
@@ -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 = \
Move more generic headers from platform include dir to common include dir. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> --- 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