On 05.11.15 13:20, huanggaoyang wrote:
Signed-off-by: huanggaoyang <huanggaoya...@huawei.com>
---
helper/lineartable.c | 210 ++++++++++++++++++++++++++++++++++++++++++++++
helper/odph_lineartable.h | 41 +++++++++
2 files changed, 251 insertions(+)
create mode 100644 helper/lineartable.c
create mode 100644 helper/odph_lineartable.h
diff --git a/helper/lineartable.c b/helper/lineartable.c
new file mode 100644
index 0000000..7809a52
--- /dev/null
+++ b/helper/lineartable.c
@@ -0,0 +1,210 @@
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <stdio.h>
+#include <string.h>
+#include <malloc.h>
.......
+
+odph_table_ops_t odph_linear_table_ops = {
+ odph_linear_table_create,
+ odph_linear_table_lookup,
+ odph_linear_table_destroy,
+ odph_lineartable_put_value,
+ odph_lineartable_get_value,
+ NULL,
+ };
+
....
Blank line at the end of file.
Need to add check in checkpatch.
diff --git a/helper/odph_lineartable.h b/helper/odph_lineartable.h
new file mode 100644
index 0000000..a53c68b
--- /dev/null
+++ b/helper/odph_lineartable.h
@@ -0,0 +1,41 @@
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+/**
+ * @file
+ *
+ * ODP Linear Table
+ */
+
+#ifndef ODPH_LINEAR_TABLE_H_
+#define ODPH_LINEAR_TABLE_H_
+
+#include <stdint.h>
+#include <odp/plat/strong_types.h>
+#include <odp/helper/table.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
.......
+}
+#endif
+
+#endif
+
....
Blank line at the end of file.
Need to add check in checkpatch.
--
Regards,
Ivan Khoronzhuk
_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp