summaryrefslogtreecommitdiffstats
path: root/src/util/util.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-09-27 13:54:12 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-10-08 19:26:55 -0400
commit068bfb887e637522f99d0e5fd0a8313e2361d754 (patch)
treedb42312556bc775f3b23057e6dcb259a4a1cd676 /src/util/util.h
parent215951647b655b0aec12c1e1361071b03c57d09f (diff)
downloadsssd2-068bfb887e637522f99d0e5fd0a8313e2361d754.tar.gz
sssd2-068bfb887e637522f99d0e5fd0a8313e2361d754.tar.xz
sssd2-068bfb887e637522f99d0e5fd0a8313e2361d754.zip
Add common hash table setup
sss_hash_create() produces a dhash table living in the talloc hierarchy.
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 6bcc9984..7fcca3a6 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -40,6 +40,7 @@
#include <talloc.h>
#include <tevent.h>
#include <ldb.h>
+#include <dhash.h>
#ifndef HAVE_ERRNO_T
#define HAVE_ERRNO_T
@@ -332,6 +333,9 @@ 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