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:01:48 -0400
commit3b1df539835367cb81cd5ff0f9959947d5642e55 (patch)
tree8bd7d98c63c37d57607d4d3c86347e457a41ae02 /src/util/util.h
parent3662413d65e9ba2a899e8ce98ec9c3a549be20c8 (diff)
downloadsssd_unused-3b1df539835367cb81cd5ff0f9959947d5642e55.tar.gz
sssd_unused-3b1df539835367cb81cd5ff0f9959947d5642e55.tar.xz
sssd_unused-3b1df539835367cb81cd5ff0f9959947d5642e55.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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 2aa41479..a15cecbd 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
@@ -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
*/