On 05.11.15 13:20, huanggaoyang wrote:
Signed-off-by: huanggaoyang <huanggaoya...@huawei.com> --- helper/hashtable.c | 346 ++++++++++++++++++++++++++++++++++++++++++++ helper/odph_hashtable.h | 42 ++++++ helper/odph_list_internal.h | 85 +++++++++++ 3 files changed, 473 insertions(+) create mode 100644 helper/hashtable.c create mode 100644 helper/odph_hashtable.h create mode 100644 helper/odph_list_internal.h diff --git a/helper/hashtable.c b/helper/hashtable.c new file mode 100644 index 0000000..0b29814 --- /dev/null +++ b/helper/hashtable.c @@ -0,0 +1,346 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ +#include <stdio.h> +#include <string.h> +#include <malloc.h> + +#include "odph_hashtable.h" +#include "odph_list_internal.h" +#include "odph_debug.h" +#include <odp.h> + +#define ODPH_SUCCESS 0 +#define ODPH_FAIL -1 +
.....
+odph_table_ops_t odph_hash_table_ops = { + odph_hash_table_create, + odph_hash_table_lookup, + odph_hash_table_destroy, + odph_hash_put_value, + odph_hash_get_value, + odph_hash_remove_value}; +
.... 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