diff mbox

[API-NEXT,PATCHv2,06/10] api: pool: use odp_pool_type_t

Message ID 1435714761-23951-6-git-send-email-bill.fischofer@linaro.org
State New
Headers show

Commit Message

Bill Fischofer July 1, 2015, 1:39 a.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 include/odp/api/pool.h | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
diff mbox

Patch

diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h
index ed6971b..6a7291b 100644
--- a/include/odp/api/pool.h
+++ b/include/odp/api/pool.h
@@ -37,6 +37,10 @@  extern "C" {
  * Invalid pool
  */
 
+/**
+ * @typedef odp_pool_type_t
+ */
+
 /** Maximum queue name length in chars */
 #define ODP_POOL_NAME_LEN  32
 
@@ -46,7 +50,7 @@  extern "C" {
  */
 typedef struct odp_pool_param_t {
 	/** Pool type */
-	int type;
+	odp_pool_type_t type;
 
 	union {
 		struct {
@@ -90,13 +94,6 @@  typedef struct odp_pool_param_t {
 	};
 } odp_pool_param_t;
 
-/** Packet pool*/
-#define ODP_POOL_PACKET       ODP_EVENT_PACKET
-/** Buffer pool */
-#define ODP_POOL_BUFFER       ODP_EVENT_BUFFER
-/** Timeout pool */
-#define ODP_POOL_TIMEOUT      ODP_EVENT_TIMEOUT
-
 /**
  * Create a pool
  *