Enables the implementations to choose the define values.

Signed-off-by: Matias Elo <matias....@nokia.com>
---

Reviewed-by: Petri Savolainen <petri.savolai...@nokia.com>
Reviewed-by: Bill Fischofer <bill.fischo...@linaro.org>

 include/odp/api/spec/pool.h                                       | 6 ++++--
 include/odp/api/spec/shared_memory.h                              | 6 ++++--
 include/odp/api/spec/timer.h                                      | 6 ++++--
 platform/linux-generic/include/odp/api/plat/pool_types.h          | 2 ++
 platform/linux-generic/include/odp/api/plat/shared_memory_types.h | 2 ++
 platform/linux-generic/include/odp/api/plat/timer_types.h         | 2 ++
 6 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h
index af2829b..c0de195 100644
--- a/include/odp/api/spec/pool.h
+++ b/include/odp/api/spec/pool.h
@@ -36,8 +36,10 @@ extern "C" {
  * Invalid pool
  */
 
-/** Maximum pool name length in chars including null char */
-#define ODP_POOL_NAME_LEN  32
+/**
+ * @def ODP_POOL_NAME_LEN
+ * Maximum pool name length in chars including null char
+ */
 
 /**
  * Pool capabilities
diff --git a/include/odp/api/spec/shared_memory.h 
b/include/odp/api/spec/shared_memory.h
index 074c883..1a9c129 100644
--- a/include/odp/api/spec/shared_memory.h
+++ b/include/odp/api/spec/shared_memory.h
@@ -40,8 +40,10 @@ extern "C" {
  * Synonym for buffer pool use
  */
 
-/** Maximum shared memory block name length in chars including null char */
-#define ODP_SHM_NAME_LEN 32
+/**
+ * @def ODP_SHM_NAME_LEN
+ * Maximum shared memory block name length in chars including null char
+ */
 
 /*
  * Shared memory flags:
diff --git a/include/odp/api/spec/timer.h b/include/odp/api/spec/timer.h
index 46a4369..75f9db9 100644
--- a/include/odp/api/spec/timer.h
+++ b/include/odp/api/spec/timer.h
@@ -90,8 +90,10 @@ typedef enum {
        ODP_TIMER_NOEVENT = -3
 } odp_timer_set_t;
 
-/** Maximum timer pool name length in chars including null char */
-#define ODP_TIMER_POOL_NAME_LEN  32
+/**
+ * @def ODP_TIMER_POOL_NAME_LEN
+ * Maximum timer pool name length in chars including null char
+ */
 
 /** Timer pool parameters
  * Timer pool parameters are used when creating and querying timer pools.
diff --git a/platform/linux-generic/include/odp/api/plat/pool_types.h 
b/platform/linux-generic/include/odp/api/plat/pool_types.h
index 4e39de5..6baff09 100644
--- a/platform/linux-generic/include/odp/api/plat/pool_types.h
+++ b/platform/linux-generic/include/odp/api/plat/pool_types.h
@@ -30,6 +30,8 @@ typedef ODP_HANDLE_T(odp_pool_t);
 
 #define ODP_POOL_INVALID _odp_cast_scalar(odp_pool_t, 0xffffffff)
 
+#define ODP_POOL_NAME_LEN  32
+
 /**
  * Pool type
  */
diff --git a/platform/linux-generic/include/odp/api/plat/shared_memory_types.h 
b/platform/linux-generic/include/odp/api/plat/shared_memory_types.h
index 4d8bbcc..afa0bf9 100644
--- a/platform/linux-generic/include/odp/api/plat/shared_memory_types.h
+++ b/platform/linux-generic/include/odp/api/plat/shared_memory_types.h
@@ -31,6 +31,8 @@ typedef ODP_HANDLE_T(odp_shm_t);
 #define ODP_SHM_INVALID _odp_cast_scalar(odp_shm_t, 0)
 #define ODP_SHM_NULL ODP_SHM_INVALID
 
+#define ODP_SHM_NAME_LEN 32
+
 /** Get printable format of odp_shm_t */
 static inline uint64_t odp_shm_to_u64(odp_shm_t hdl)
 {
diff --git a/platform/linux-generic/include/odp/api/plat/timer_types.h 
b/platform/linux-generic/include/odp/api/plat/timer_types.h
index 68d6f6f..8821bed 100644
--- a/platform/linux-generic/include/odp/api/plat/timer_types.h
+++ b/platform/linux-generic/include/odp/api/plat/timer_types.h
@@ -30,6 +30,8 @@ typedef struct odp_timer_pool_s *odp_timer_pool_t;
 
 #define ODP_TIMER_POOL_INVALID NULL
 
+#define ODP_TIMER_POOL_NAME_LEN  32
+
 typedef ODP_HANDLE_T(odp_timer_t);
 
 #define ODP_TIMER_INVALID _odp_cast_scalar(odp_timer_t, 0xffffffff)
-- 
2.7.4

Reply via email to