diff mbox

[API-NEXT,4/6] linux-generic: pool: add odp_pool_param_init implementation

Message ID 1435234172-2015-4-git-send-email-bill.fischofer@linaro.org
State New
Headers show

Commit Message

Bill Fischofer June 25, 2015, 12:09 p.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 platform/linux-generic/include/odp/plat/pool_types.h | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox

Patch

diff --git a/platform/linux-generic/include/odp/plat/pool_types.h b/platform/linux-generic/include/odp/plat/pool_types.h
index 568556f..8e12914 100644
--- a/platform/linux-generic/include/odp/plat/pool_types.h
+++ b/platform/linux-generic/include/odp/plat/pool_types.h
@@ -15,6 +15,9 @@ 
 
 #include <odp/std_types.h>
 #include <odp/plat/strong_types.h>
+#include <odp/plat/event_types.h>
+#include "odp/api/pool_param.h"
+#include "string.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -29,6 +32,12 @@  typedef ODP_HANDLE_T(odp_pool_t);
 
 #define ODP_POOL_INVALID _odp_cast_scalar(odp_pool_t, 0xffffffff)
 
+/** Initialize the odp_pool_param struct */
+static inline void odp_pool_param_init(odp_pool_param_t *param)
+{
+	memset((void *)param, 0, sizeof(odp_pool_param_t));
+}
+
 /** Get printable format of odp_pool_t */
 static inline uint64_t odp_pool_to_u64(odp_pool_t hdl)
 {