diff mbox series

[2.0,v1,1/1] linux-gen: modular-farmework: make modular framework symbols visible

Message ID 1508752805-11889-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [2.0,v1,1/1] linux-gen: modular-farmework: make modular framework symbols visible | expand

Commit Message

Github ODP bot Oct. 23, 2017, 10 a.m. UTC
From: Bogdan Pricope <bogdan.pricope@linaro.org>


Make modular framework/subsystems symbols visible

Signed-off-by: Bogdan Pricope <bogdan.pricope@linaro.org>

---
/** Email created from pull request 251 (bogdanPricope:2_0_symbols_visibility_pr)
 ** https://github.com/Linaro/odp/pull/251
 ** Patch: https://github.com/Linaro/odp/pull/251.patch
 ** Base sha: 7bab5c22f99bb4847bd941fea1f5ed59a1412899
 ** Merge commit sha: 7ddf90257c616d2cc794de570b458c58b4a0a334
 **/
 frameworks/modular/odp_module.h                          | 10 ++++++++++
 platform/linux-generic/include/odp_buffer_subsystem.h    |  2 ++
 platform/linux-generic/include/odp_pktio_ops_subsystem.h | 10 ++++++++++
 platform/linux-generic/include/odp_pool_subsystem.h      |  2 ++
 platform/linux-generic/include/odp_queue_subsystem.h     |  2 ++
 platform/linux-generic/include/odp_schedule_subsystem.h  | 10 ++++++++++
 6 files changed, 36 insertions(+)
diff mbox series

Patch

diff --git a/frameworks/modular/odp_module.h b/frameworks/modular/odp_module.h
index 59f67c8d4..b20501eb2 100644
--- a/frameworks/modular/odp_module.h
+++ b/frameworks/modular/odp_module.h
@@ -38,6 +38,11 @@ 
 
 #ifndef ODP_MODULE_H_
 #define ODP_MODULE_H_
+#include <odp/visibility_begin.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #include <stdbool.h>
 #include <odp/api/rwlock.h>
@@ -293,4 +298,9 @@  int __subsystem_register_module(
 	__subsystem_set_active(&__subsystem(name), base);	\
 })
 
+#ifdef __cplusplus
+}
+#endif
+
+#include <odp/visibility_end.h>
 #endif
diff --git a/platform/linux-generic/include/odp_buffer_subsystem.h b/platform/linux-generic/include/odp_buffer_subsystem.h
index 6b69c06ff..3c791d207 100644
--- a/platform/linux-generic/include/odp_buffer_subsystem.h
+++ b/platform/linux-generic/include/odp_buffer_subsystem.h
@@ -8,6 +8,7 @@ 
 
 #ifndef ODP_BUFFER_SUBSYSTEM_H_
 #define ODP_BUFFER_SUBSYSTEM_H_
+#include <odp/visibility_begin.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -58,5 +59,6 @@  typedef ODP_MODULE_CLASS(buffer) {
 }
 #endif
 
+#include <odp/visibility_end.h>
 #endif
 
diff --git a/platform/linux-generic/include/odp_pktio_ops_subsystem.h b/platform/linux-generic/include/odp_pktio_ops_subsystem.h
index 34bc5a24e..cb107fed2 100644
--- a/platform/linux-generic/include/odp_pktio_ops_subsystem.h
+++ b/platform/linux-generic/include/odp_pktio_ops_subsystem.h
@@ -8,6 +8,11 @@ 
 
 #ifndef ODP_PKTIO_OPS_SUBSYSTEM_H_
 #define ODP_PKTIO_OPS_SUBSYSTEM_H_
+#include <odp/visibility_begin.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #include <odp_module.h>
 #include <odp/api/packet_io.h>
@@ -87,4 +92,9 @@  typedef ODP_MODULE_CLASS(pktio_ops) {
 #define odp_ops_data(_p, _mod) \
 	((pktio_ops_ ## _mod ## _data_t *)(uintptr_t)_p->s.ops_data)
 
+#ifdef __cplusplus
+}
+#endif
+
+#include <odp/visibility_end.h>
 #endif
diff --git a/platform/linux-generic/include/odp_pool_subsystem.h b/platform/linux-generic/include/odp_pool_subsystem.h
index 45537a862..0f34ad143 100644
--- a/platform/linux-generic/include/odp_pool_subsystem.h
+++ b/platform/linux-generic/include/odp_pool_subsystem.h
@@ -8,6 +8,7 @@ 
 
 #ifndef ODP_POOL_SUBSYSTEM_H_
 #define ODP_POOL_SUBSYSTEM_H_
+#include <odp/visibility_begin.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -47,4 +48,5 @@  typedef ODP_MODULE_CLASS(pool) {
 }
 #endif
 
+#include <odp/visibility_end.h>
 #endif
diff --git a/platform/linux-generic/include/odp_queue_subsystem.h b/platform/linux-generic/include/odp_queue_subsystem.h
index 601a254ea..57fa68fdb 100644
--- a/platform/linux-generic/include/odp_queue_subsystem.h
+++ b/platform/linux-generic/include/odp_queue_subsystem.h
@@ -8,6 +8,7 @@ 
 
 #ifndef ODP_QUEUE_SUBSYSTEM_H
 #define ODP_QUEUE_SUBSYSTEM_H
+#include <odp/visibility_begin.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -74,4 +75,5 @@  typedef ODP_MODULE_CLASS(queue) {
 }
 #endif
 
+#include <odp/visibility_end.h>
 #endif
diff --git a/platform/linux-generic/include/odp_schedule_subsystem.h b/platform/linux-generic/include/odp_schedule_subsystem.h
index 4b2f29582..7d9247788 100644
--- a/platform/linux-generic/include/odp_schedule_subsystem.h
+++ b/platform/linux-generic/include/odp_schedule_subsystem.h
@@ -8,6 +8,11 @@ 
 
 #ifndef ODP_SCHEDULE_SUBSYSTEM_H_
 #define ODP_SCHEDULE_SUBSYSTEM_H_
+#include <odp/visibility_begin.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /* API header files */
 #include <odp/api/align.h>
@@ -77,4 +82,9 @@  typedef ODP_MODULE_CLASS(schedule) {
 	odp_api_proto(schedule, schedule_resume) schedule_resume;
 } odp_schedule_module_t;
 
+#ifdef __cplusplus
+}
+#endif
+
+#include <odp/visibility_end.h>
 #endif  /* ODP_SCHEDULE_SUBSYSTEM_H_ */