new file mode 100644
@@ -0,0 +1,19 @@
+/* Copyright (c) 2013, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef ODP_CORE_MODULE_H_
+#define ODP_CORE_MODULE_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <frameworks/modular/spec/module.h>
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* ODP_CORE_MODULE_H_ */
@@ -10,7 +10,7 @@
#include <stdio.h>
#include <errno.h>
-#include "odp_module.h"
+#include "module.h"
#define MODULE_FRAMEWORK_VERSION 0x00010000UL
ODP_SUBSYSTEM_DEFINE(module, "module framework", MODULE_FRAMEWORK_VERSION);
@@ -1,7 +1,8 @@
include_HEADERS = \
odp.h \
odp_api.h \
- odp_drv.h
+ odp_drv.h \
+ odp_mf.h
odpapispecincludedir= $(includedir)/odp/api/spec
odpapispecinclude_HEADERS = \
@@ -68,6 +69,11 @@ odpdrvspecinclude_HEADERS = \
odp/drv/spec/std_types.h \
odp/drv/spec/sync.h
+frameworksmodularspecincludedir= $(includedir)/frameworks/modular/spec
+frameworksmodularspecinclude_HEADERS = \
+ frameworks/modular/spec/module.h \
+ frameworks/modular/spec/list.h
+
odpapiabidefaultincludedir= $(includedir)/odp/arch/default/api/abi
odpapiabidefaultinclude_HEADERS = \
odp/arch/default/api/abi/buffer.h \
similarity index 100%
rename from frameworks/modular/list.h
rename to include/frameworks/modular/spec/list.h
similarity index 100%
rename from frameworks/modular/odp_module.h
rename to include/frameworks/modular/spec/module.h
new file mode 100644
@@ -0,0 +1,26 @@
+/* Copyright (c) 2016, Linaro Limited
+ * All rights reserved
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+/**
+ * @file
+ *
+ * The OpenDataPlane modular framework programming interface
+ *
+ */
+
+#ifndef ODP_MF_H_
+#define ODP_MF_H_
+
+#ifdef __cplusplus
+extern C {
+#endif
+
+#include <frameworks/modular/spec/module.h>
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* ODP_MF_H_ */
@@ -22,7 +22,6 @@ AM_CPPFLAGS += -I$(top_srcdir)/platform/linux-dpdk/include
AM_CPPFLAGS += -I$(top_srcdir)/platform/linux-generic/include
AM_CPPFLAGS += -I$(srcdir)/include
AM_CPPFLAGS += -I$(top_srcdir)/include
-AM_CPPFLAGS += -I$(top_srcdir)/frameworks/modular
AM_CPPFLAGS += -I$(top_srcdir)/include/odp/arch/@ARCH_ABI@
AM_CPPFLAGS += -I$(top_builddir)/include
AM_CPPFLAGS += -Iinclude
@@ -38,7 +37,8 @@ AM_CPPFLAGS += $(LIBCONFIG_CFLAGS)
include_HEADERS = \
$(top_srcdir)/include/odp.h \
$(top_srcdir)/include/odp_api.h \
- $(top_srcdir)/include/odp_drv.h
+ $(top_srcdir)/include/odp_drv.h \
+ $(top_srcdir)/include/odp_mf.h
odpincludedir= $(includedir)/odp
odpinclude_HEADERS = \
@@ -355,8 +355,7 @@ endif
# Build modular framework into odp-linux library
modularframeworkdir = $(top_srcdir)/frameworks/modular
-noinst_HEADERS += $(modularframeworkdir)/list.h \
- $(modularframeworkdir)/odp_module.h
+noinst_HEADERS += $(modularframeworkdir)/module.h
__LIB__libodp_dpdk_la_SOURCES += ../../frameworks/modular/odp_module.c
@@ -10,7 +10,6 @@ lib_LTLIBRARIES = $(LIB)/libodp-linux.la
AM_CPPFLAGS = -I$(srcdir)/include
AM_CPPFLAGS += -I$(top_srcdir)/include
-AM_CPPFLAGS += -I$(top_srcdir)/frameworks/modular
AM_CPPFLAGS += -I$(top_srcdir)/include/odp/arch/@ARCH_ABI@
AM_CPPFLAGS += -I$(top_builddir)/include
AM_CPPFLAGS += -Iinclude
@@ -377,8 +376,7 @@ endif
# Build modular framework into odp-linux library
modularframeworkdir = $(top_srcdir)/frameworks/modular
-noinst_HEADERS += $(modularframeworkdir)/list.h \
- $(modularframeworkdir)/odp_module.h
+noinst_HEADERS += $(modularframeworkdir)/module.h
__LIB__libodp_linux_la_SOURCES += ../../frameworks/modular/odp_module.c
@@ -8,7 +8,6 @@
#include <odp/api/buffer.h>
#include <odp_buffer_subsystem.h>
#include <odp_debug_internal.h>
-#include <odp_module.h>
ODP_SUBSYSTEM_DEFINE(buffer, "memory buffer public APIs",
BUFFER_SUBSYSTEM_VERSION);
@@ -14,7 +14,7 @@
extern "C" {
#endif
-#include <odp_module.h>
+#include <frameworks/modular/spec/module.h>
#include <odp/api/buffer.h>
#define BUFFER_SUBSYSTEM_VERSION 0x00010000UL
@@ -14,7 +14,7 @@
extern "C" {
#endif
-#include <odp_module.h>
+#include <frameworks/modular/spec/module.h>
#include <odp/api/packet_io.h>
/* ODP packet IO operations subsystem declaration */
@@ -14,7 +14,7 @@
extern "C" {
#endif
-#include <odp_module.h>
+#include <frameworks/modular/spec/module.h>
#include <odp/api/pool.h>
/* ODP pool public APIs subsystem */
@@ -14,7 +14,7 @@
extern "C" {
#endif
-#include <odp_module.h>
+#include <frameworks/modular/spec/module.h>
#include <odp/api/queue.h>
#define QUEUE_SUBSYSTEM_VERSION 0x00010000UL
@@ -17,9 +17,7 @@ extern "C" {
/* API header files */
#include <odp/api/align.h>
#include <odp/api/schedule.h>
-
-/* Internal header files */
-#include <odp_module.h>
+#include <frameworks/modular/spec/module.h>
#define SCHEDULE_SUBSYSTEM_VERSION 0x00010000UL
@@ -9,7 +9,6 @@
#include <odp_internal.h>
#include <odp_pool_subsystem.h>
#include <odp_debug_internal.h>
-#include <odp_module.h>
#define SUBSYSTEM_VERSION 0x00010000UL
ODP_SUBSYSTEM_DEFINE(pool, "memory pool public APIs", SUBSYSTEM_VERSION);
@@ -12,7 +12,6 @@
#include <odp_internal.h>
#include <odp_debug_internal.h>
#include <odp_queue_subsystem.h>
-#include <odp_module.h>
ODP_SUBSYSTEM_DEFINE(queue, "queue public APIs", QUEUE_SUBSYSTEM_VERSION);
@@ -14,7 +14,6 @@
/* Internal header files */
#include <odp_debug_internal.h>
#include <odp_internal.h>
-#include <odp_module.h>
#include <odp_schedule_subsystem.h>
ODP_SUBSYSTEM_DEFINE(schedule, "schedule public APIs",