diff mbox

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

Message ID 1455289804-1821-5-git-send-email-christophe.milard@linaro.org
State Accepted
Commit 9923626f8e478e0776444b493e43432cfb072908
Headers show

Commit Message

Christophe Milard Feb. 12, 2016, 3:10 p.m. UTC
Adding standard types to the ODP driver interface (drv).

Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
---
 include/odp/drv/spec/std_types.h | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 include/odp/drv/spec/std_types.h
diff mbox

Patch

diff --git a/include/odp/drv/spec/std_types.h b/include/odp/drv/spec/std_types.h
new file mode 100644
index 0000000..904a385
--- /dev/null
+++ b/include/odp/drv/spec/std_types.h
@@ -0,0 +1,40 @@ 
+/* 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_STD_TYPES_H_
+#define ODPDRV_STD_TYPES_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/** @addtogroup odpdrv_system ODPDRV SYSTEM
+ *  @{
+ */
+
+/**
+ * @typedef odpdrv_bool_t
+ * Use odpdrv boolean type to have it well-defined and known size,
+ * regardless which compiler is used as this facilities interoperability
+ * between e.g. different compilers.
+ */
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif