From 3b1df539835367cb81cd5ff0f9959947d5642e55 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 27 Sep 2010 13:54:12 -0400 Subject: Add common hash table setup sss_hash_create() produces a dhash table living in the talloc hierarchy. --- src/util/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/util/util.h') diff --git a/src/util/util.h b/src/util/util.h index 2aa414797..a15cecbd7 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -40,6 +40,7 @@ #include #include #include +#include #ifndef HAVE_ERRNO_T #define HAVE_ERRNO_T @@ -343,6 +344,10 @@ int split_on_separator(TALLOC_CTX *mem_ctx, const char *str, char **parse_args(const char *str); +errno_t sss_hash_create(TALLOC_CTX *mem_ctx, + unsigned long count, + hash_table_t **tbl); + /* Copy a NULL-terminated string list * Returns NULL on out of memory error or invalid input */ -- cgit