diff mbox

[API-NEXT,5/5] linux-generic: drv: adding standard types

Message ID 1455289804-1821-6-git-send-email-christophe.milard@linaro.org
State Accepted
Commit e132fe95364421128e721d93ccd08036a7d990d0
Headers show

Commit Message

Christophe Milard Feb. 12, 2016, 3:10 p.m. UTC
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
---
 include/odp_drv.h                                  |  2 ++
 platform/linux-generic/include/odp/drv/std_types.h | 42 ++++++++++++++++++++++
 2 files changed, 44 insertions(+)
 create mode 100644 platform/linux-generic/include/odp/drv/std_types.h
diff mbox

Patch

diff --git a/include/odp_drv.h b/include/odp_drv.h
index b78fa9d..51fca7a 100644
--- a/include/odp_drv.h
+++ b/include/odp_drv.h
@@ -18,6 +18,8 @@ 
 extern C {
 #endif
 
+#include <odp/drv/std_types.h>
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/platform/linux-generic/include/odp/drv/std_types.h b/platform/linux-generic/include/odp/drv/std_types.h
new file mode 100644
index 0000000..5b0815b
--- /dev/null
+++ b/platform/linux-generic/include/odp/drv/std_types.h
@@ -0,0 +1,42 @@ 
+/* Copyright (c) 2016, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier:     BSD-3-Clause
+ */
+
+/**
+ * @file
+ *
+ * Standard C language types and definitions for ODP driver interface.
+ */
+
+#ifndef ODPDRV_PLAT_STD_TYPES_H_
+#define ODPDRV_PLAT_STD_TYPES_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stddef.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <inttypes.h>
+#include <limits.h>
+
+/** @addtogroup odpdrv_system ODPDRV SYSTEM
+ *  @{
+ */
+
+typedef int odpdrv_bool_t;
+
+/**
+ * @}
+ */
+
+#include <odp/drv/std_types.h>
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif